pass -1 to setfile in cp.c
Submitted by: Jun Kuriyama
This commit is contained in:
+1
-1
@@ -366,7 +366,7 @@ copy(char *argv[], enum op type, int fts_options)
|
|||||||
* normally want to preserve them on directories.
|
* normally want to preserve them on directories.
|
||||||
*/
|
*/
|
||||||
if (pflag) {
|
if (pflag) {
|
||||||
if (setfile(curr->fts_statp, 0))
|
if (setfile(curr->fts_statp, -1))
|
||||||
rval = 1;
|
rval = 1;
|
||||||
} else {
|
} else {
|
||||||
mode = curr->fts_statp->st_mode;
|
mode = curr->fts_statp->st_mode;
|
||||||
|
|||||||
Reference in New Issue
Block a user