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
State Changed From-To: open->closed Fixed in rev 1.3 of cpio/main.c.