GNU bug report logs -
#56777
[PATCH] Use absolute path for home activation script.
Previous Next
Reported by: Andrew Tropin <andrew <at> trop.in>
Date: Tue, 26 Jul 2022 08:09:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 56777 <at> debbugs.gnu.org (full text, mbox):
Hi Andrew,
Andrew Tropin <andrew <at> trop.in> skribis:
> * gnu/home/services.scm (compute-activation-script): Use absolute path for
> home activation script.
>
> ---
> gnu/home/services.scm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gnu/home/services.scm b/gnu/home/services.scm
> index b05ec53e2a..6d5e4308a0 100644
> --- a/gnu/home/services.scm
> +++ b/gnu/home/services.scm
> @@ -418,7 +418,7 @@ (define (compute-activation-script init-gexp gexps)
> (new-home-env (getenv "GUIX_NEW_HOME"))
> (new-home (or new-home-env
> ;; Path of the activation file if called interactively
> - (dirname (car (command-line)))))
> + (canonicalize-path (dirname (car (command-line))))))
Just wondering: what’s the rationale?
This is harmless-looking and perhaps it’s all fine, but IME calling
‘canonicalize-path’ might sometimes paper over problems related to file
name handling.
Thanks,
Ludo’.
This bug report was last modified 2 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.