diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-15 10:27:19 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-15 10:27:19 +0000 |
commit | 996f93243dda87de3140c497624312722f47ffa1 (patch) | |
tree | 8c894b5b7414cbd72f02bd309d54ffa62283915a /libbb/make_directory.c | |
parent | 79c85ec59075b5ead415a4713bd72445546dcf8e (diff) | |
download | busybox-w32-996f93243dda87de3140c497624312722f47ffa1.tar.gz busybox-w32-996f93243dda87de3140c497624312722f47ffa1.tar.bz2 busybox-w32-996f93243dda87de3140c497624312722f47ffa1.zip |
win32: add function to convert slashes to backslashes
There are now two places where slashes are converted to backslashes
throughout a string so it makes sense to create a function to do
this.
To avoid confusion rename convert_slashes() to bs_to_slash() and
call the new function slash_to_bs().
Diffstat (limited to 'libbb/make_directory.c')
-rw-r--r-- | libbb/make_directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/make_directory.c b/libbb/make_directory.c index ef0a8acd8..9af5552d5 100644 --- a/libbb/make_directory.c +++ b/libbb/make_directory.c | |||
@@ -51,7 +51,7 @@ int FAST_FUNC bb_make_directory(char *path, long mode, int flags) | |||
51 | org_mask = cur_mask = (mode_t)-1L; | 51 | org_mask = cur_mask = (mode_t)-1L; |
52 | #if ENABLE_PLATFORM_MINGW32 | 52 | #if ENABLE_PLATFORM_MINGW32 |
53 | /* normalise path separators, path is already assumed writable */ | 53 | /* normalise path separators, path is already assumed writable */ |
54 | convert_slashes(path); | 54 | bs_to_slash(path); |
55 | #endif | 55 | #endif |
56 | s = path; | 56 | s = path; |
57 | while (1) { | 57 | while (1) { |