diff options
Diffstat (limited to 'cp.c')
-rw-r--r-- | cp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -54,6 +54,8 @@ static int fileAction(const char *fileName, struct stat* statbuf) strcat(newdestName, "/"); if ( skipName != NULL) strcat(newdestName, strstr(fileName, skipName)); + else + strcat(newdestName, srcName); } return (copyFile(fileName, newdestName, preserveFlag, followLinks)); } |