bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] Bug#430053: ignores umask


From: Dan Jacobson
Subject: [Bug-cpio] Bug#430053: ignores umask
Date: Fri, 22 Jun 2007 09:20:00 +0800

Package: cpio
Version: 2.8-1
Severity: minor

This is bananas, cpio is now ignoring umask for the directories it
creates when they are not in the archive.
$ umask
0022
$ find d -ls
 70499    0 drwxr-xr-x   2 jidanni  jidanni        60 Jun 22 09:01 d
 70562    0 -rw-r--r--   1 jidanni  jidanni         0 Jun 22 09:01 d/f
$ mkdir zz
$ find d -type f|cpio -o|(cd zz;cpio -idm)
1 block
1 block
$ find zz -ls
 72509    0 drwxr-xr-x   3 jidanni  jidanni        60 Jun 22 09:13 zz
 72534    0 drwx------   2 jidanni  jidanni        60 Jun 22 09:13 zz/d
 72535    0 -rw-r--r--   1 jidanni  jidanni         0 Jun 22 09:01 zz/d/f

See also "cpio -p: directories created in 700 mode"
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=350827
which I didn't test again today.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]