diff options
author | Mark Whitley | 2001-03-07 17:27:04 +0000 |
---|---|---|
committer | Mark Whitley | 2001-03-07 17:27:04 +0000 |
commit | ae20128e9f7a7d31629079068b04cf7119cc40df (patch) | |
tree | 9ed4ce288d18b6f661403d43177f584032c8b0d0 | |
parent | 26d53eb197c6c47c323c3772bfdbfe7f3906e881 (diff) | |
download | busybox-ae20128e9f7a7d31629079068b04cf7119cc40df.zip busybox-ae20128e9f7a7d31629079068b04cf7119cc40df.tar.gz |
Applied patch from Christophe Boyaniqu to remove double-slashes printed in
recursive_action.
-rw-r--r-- | utility.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -715,7 +715,10 @@ int recursive_action(const char *fileName, return FALSE; } memset(nextFile, 0, sizeof(nextFile)); - sprintf(nextFile, "%s/%s", fileName, next->d_name); + if (fileName[strlen(fileName)-1] == '/') + sprintf(nextFile, "%s%s", fileName, next->d_name); + else + sprintf(nextFile, "%s/%s", fileName, next->d_name); status = recursive_action(nextFile, TRUE, followLinks, depthFirst, fileAction, dirAction, userData); |