summaryrefslogtreecommitdiff
path: root/cp.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-16 00:46:00 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-16 00:46:00 +0000
commitd80e851dc05f978dded84b7ac9fcae7066e3ffe0 (patch)
tree9f32d236ce80a7a692f74fe1012df3bed6b19418 /cp.c
parenta9c95ea6551eb3d894fcc56822c8aa394972b699 (diff)
downloadbusybox-w32-d80e851dc05f978dded84b7ac9fcae7066e3ffe0.tar.gz
busybox-w32-d80e851dc05f978dded84b7ac9fcae7066e3ffe0.tar.bz2
busybox-w32-d80e851dc05f978dded84b7ac9fcae7066e3ffe0.zip
Stuf
Diffstat (limited to 'cp.c')
-rw-r--r--cp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cp.c b/cp.c
index 57158c820..ce632016e 100644
--- a/cp.c
+++ b/cp.c
@@ -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}