[patch] /bin/cp POSIX conformance

Jason Smethers jason at smethers.net
Mon Dec 20 10:49:58 PST 2004


IEEE Std 1003.1-2004 also states the following for the cp utility under 
section 2e:

2. If source_file is of type directory, the following steps shall be taken:

. ..

  e. ... If dest_file cannot be created, cp shall write a diagnostic 
message to standard error, do nothing more with source_file, and go on 
to any remaining files. ...



Currently the cp utility exits with the error message. An updated 
inclusive patch is listed below.

- Jason

<http://www.smethers.net/~jason/patches/cp.c.diff2>





More information about the Submit mailing list