mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
package: Fix default profile ownership check when it's just been created.
* guix/scripts/package.scm (guix-package)[ensure-default-profile]: Check whether S is true before checking its owner. Fixes the case where we built %PROFILE-DIRECTORY just above.
This commit is contained in:
parent
929c0f69de
commit
cba363bea8
1 changed files with 1 additions and 1 deletions
|
@ -644,7 +644,7 @@ (define (rtfm)
|
|||
(rtfm))))
|
||||
|
||||
;; Bail out if it's not owned by the user.
|
||||
(unless (= (stat:uid s) (getuid))
|
||||
(unless (or (not s) (= (stat:uid s) (getuid)))
|
||||
(format (current-error-port)
|
||||
(_ "error: directory `~a' is not owned by you~%")
|
||||
%profile-directory)
|
||||
|
|
Loading…
Reference in a new issue