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) | |||
54 | strcat(newdestName, "/"); | 54 | strcat(newdestName, "/"); |
55 | if ( skipName != NULL) | 55 | if ( skipName != NULL) |
56 | strcat(newdestName, strstr(fileName, skipName)); | 56 | strcat(newdestName, strstr(fileName, skipName)); |
57 | else | ||
58 | strcat(newdestName, srcName); | ||
57 | } | 59 | } |
58 | return (copyFile(fileName, newdestName, preserveFlag, followLinks)); | 60 | return (copyFile(fileName, newdestName, preserveFlag, followLinks)); |
59 | } | 61 | } |