pass -1 to setfile in cp.c

Submitted by:	Jun Kuriyama
This commit is contained in:
John-Mark Gurney 2003-06-30 06:16:06 +00:00
parent 4e650399de
commit 529a7167bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117065

View File

@ -366,7 +366,7 @@ copy(char *argv[], enum op type, int fts_options)
* normally want to preserve them on directories.
*/
if (pflag) {
if (setfile(curr->fts_statp, 0))
if (setfile(curr->fts_statp, -1))
rval = 1;
} else {
mode = curr->fts_statp->st_mode;