GNU bug report logs -
#44463
Skeleton files in sub-directories are not writable
Previous Next
To reply to this bug, email your comments to 44463 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#44463
; Package
guix
.
(Thu, 05 Nov 2020 10:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Reza Alizadeh Majd <r.majd <at> pantherx.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 05 Nov 2020 10:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Guix,
trying to add a new skeleton file in a sub-directory in newly created
users home, skeleton files add in read-only mode.
since there shouldn't be any difference between adding a skeleton file
in user home directory, or in a sub-directory under user's home, I
assume this might be a bug related to skeleton file creation.
following configuration could be used to reproduce this issue:
--8<---------------cut here---------------start------------->8---
(use-modules (gnu))
(define (test-skeletons)
(append
`(("test" ,(computed-file
"test"
(with-imported-modules '((guix build utils))
#~(begin
(use-modules (guix build utils))
(mkdir-p #$output)))))
("foo" ,(plain-file "foo" "foo is writable"))
("test/bar" ,(plain-file "bar" "bar is read-only")))
(default-skeletons)))
(operating-system
(host-name "guix.test")
(timezone "Asia/Tehran")
(locale "en_US.utf8")
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")))
(file-systems (cons (file-system
(device (file-system-label "my-root"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
(skeletons (test-skeletons)))
--8<---------------cut here---------------end--------------->8---
generated skeleton files status:
--8<---------------cut here---------------start------------->8---
root <at> guix ~# ll
total 4
-rw-r--r-- 1 root root 15 Nov 5 14:05 foo
-rw-r--r-- 2 root root 15 Nov 5 14:05 test/
root <at> guix ~# ll
-r--r--r-- 1 root root 15 Nov 5 14:05 bar
--8<---------------cut here---------------end--------------->8---
Regards,
Reza
--
Reza Alizadeh Majd
PantherX Team
https://www.pantherx.org/
This bug report was last modified 4 years and 106 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.