projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
made note of my recent changes
[oweals/busybox.git]
/
cp.c
diff --git
a/cp.c
b/cp.c
index 57158c82004464d50b369d320af54f7854a6b9a2..ce632016ead857a2a1b1852a2ca1d47dee488f41 100644
(file)
--- a/
cp.c
+++ b/
cp.c
@@
-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));
}