OpenSolaris

Printable Version Enter a New Search
Bug ID 4163620
Synopsis *cpio* reports as an error an attempt to archive a named socket
State 10-Fix Delivered:Verified (Fix available in build)
Category:Subcategory utility:archiver
Keywords BOP | EOPNOTSUPP | bopmail-exception | cpio | error | socket
Responsible Engineer Cynthia Eastham
Reported Against 2.6 , 5.6 , 5.8 , 5.9 , s10 , s81_58 , snv_68 , snv_73 , s10u4_fcs , s28_08_64bit , s998_19_64bit
Duplicate Of
Introduced In solaris_2.6
Commit to Fix snv_77
Fixed In snv_77
Release Fixed solaris_nevada(snv_77) , solaris_10u5(s10u5_09) (Bug ID:2154382)
Related Bugs 1194781 , 4157367 , 6593833 , 6628307
Submit Date 5-August-1998
Last Update Date 8-January-2010
Description
cpio reports as an error an attempt to archive a named socket:

$ pwd
/tmp
$ find . -print|cpio -ocv > /dev/rmt/0
.
ps_data
.rpc_door
.rpc_door/.rpc_100029.1
.rpc_door/.rpc_100029.2
.rpc_door/.rpc_100029.3
.pcmcia
.pcmcia/pcram
.X11-unix
cpio: ".X11-unix/X0" ?
.X11-pipe
.X11-pipe/X0
.removable
.regtool
cpio: "blah-14476232" ?
.mnttab.lock
.name_service_door
.obp_devices
.pwd.lock
.reconfigure_power
.rootkey
.sysIDtool.state
.sysidconfig.apps
.syslog_door
.login
31 blocks
2 error(s)
$ echo $?
2

$ file .X11-unix/X0
.X11-unix/X0:	socket
$ file blah-14476232
blah-14476232:	socket

This is not only reported on the cpio listing output, but also reflected in the cpio exit code.  Backup scripts which are aware of this code will see this as a failure to back up.
Work Around
add a check for sockets to backup scripts where possible:

from  find . -print|cpio -ocv > archive

to    find . ! -type s -print|cpio -ocv > archive
Comments
N/A