GNU bug report logs -
#72920
[PATCH 0/3] Clean out /run upon boot
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 31 Aug 2024 19:44: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
View this message in rfc822 format
Hi Hilton,
Hilton Chain <hako <at> ultrarare.space> skribis:
[...]
>> - (mkdir "/tmp")
>> - (chmod "/tmp" #o1777)
>> - (mkdir "/var/run")
>> - (chmod "/var/run" #o755)
>> + (mkdir "/tmp" #o1777)
>> + (mkdir "/var/run" #o755)
>> (delete-file-recursively "/run/udev/watch.old"))))))
>>
>> (define cleanup-service-type
>
> It seems that the mode is not applied correctly:
>
> $ guile -c '(mkdir "/tmp/test" #o1777)' && stat /tmp/test
> [...]
> Access: (1755/drwxr-xr-t) Uid: ( 1000/ hako) Gid: ( 998/ users)
Oops, I saw your message too late, apologies.
Commit f92151133da4b98f98e755ce0996e8be59acac72 fixes that and adds a
test so we can catch it next time.
The story is that the 2nd argument to ‘mkdir’ is and’ed with umask,
something that I had forgotten.
Thanks and sorry for the mess.
Ludo’.
This bug report was last modified 294 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.