diff options
author | Eric Andersen | 1999-11-19 02:38:58 +0000 |
---|---|---|
committer | Eric Andersen | 1999-11-19 02:38:58 +0000 |
commit | 08b1034f4f0b910660a8b1a537f86462fa41ebad (patch) | |
tree | 4a39b721f4654120bff47fcd7cd95906172ec16f /utility.c | |
parent | ab746abfc05c28824b25e12b86a538b09fb9275d (diff) | |
download | busybox-08b1034f4f0b910660a8b1a537f86462fa41ebad.zip busybox-08b1034f4f0b910660a8b1a537f86462fa41ebad.tar.gz |
Stuf
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -482,6 +482,10 @@ extern void createPath (const char *name, int mode) char buf[NAME_MAX]; strcpy (buf, name); + if (buf[strlen(buf)]!='/') { + buf[strlen(buf)] = '/'; + buf[strlen(buf)+1] = '\0'; + } cp = strchr (buf, '/'); |