Bug 1391 - cpio -O ignores umask
Summary: cpio -O ignores umask
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.1.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-07-16 10:20 UTC by Georg-W. Koltermann
Modified: 1997-02-25 06:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg-W. Koltermann 1996-07-16 10:20:01 UTC
cpio -O ignores the current umask when creating output files.
The output file is being created with mode 0666.

How-To-Repeat: 
anaconda[549]$ umask
027
anaconda[550]$ ls -l
anaconda[551]$ touch abc
anaconda[552]$ ls -l
total 0
-rw-r-----  1 gwk  cray  0 Jul 16 11:02 abc
anaconda[553]$ echo abc | cpio -o -O bad.cpo
1 block
anaconda[554]$ ls -l
total 4
-rw-r-----  1 gwk  cray    0 Jul 16 11:02 abc
-rw-rw-rw-  1 gwk  cray  512 Jul 16 11:02 bad.cpo
Comment 1 mpp freebsd_committer freebsd_triage 1997-02-25 06:11:27 UTC
State Changed
From-To: open->closed

Fixed in rev 1.3 of cpio/main.c.