diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-03-25 21:54:12 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-03-25 21:54:12 +0000 |
commit | 34508fc3cdd73ddb7a9532e434af4a561404507f (patch) | |
tree | 9ea24b0404f92385f8fdb897d6dd58788a6cbc8b /frontends/atari | |
parent | 959c561eb3d69e336e1d2342d230a7c87aec9493 (diff) | |
download | netsurf-34508fc3cdd73ddb7a9532e434af4a561404507f.tar.gz netsurf-34508fc3cdd73ddb7a9532e434af4a561404507f.tar.bz2 |
For some reason atari mkdir_all operation was using the wrong path separator
Diffstat (limited to 'frontends/atari')
-rw-r--r-- | frontends/atari/file.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/atari/file.c b/frontends/atari/file.c index 235d8240f..81b67e86c 100644 --- a/frontends/atari/file.c +++ b/frontends/atari/file.c @@ -234,7 +234,7 @@ static nserror atari_mkdir_all(const char *fname) dname = strdup(fname); - sep = strrchr(dname, '/'); + sep = strrchr(dname, '\\'); if (sep == NULL) { /* no directory separator path is just filename so its ok */ free(dname); @@ -251,13 +251,13 @@ static nserror atari_mkdir_all(const char *fname) } return NSERROR_NOT_DIRECTORY; } - *sep = '/'; /* restore separator */ + *sep = '\\'; /* restore separator */ sep = dname; - while (*sep == '/') { + while (*sep == '\\') { sep++; } - while ((sep = strchr(sep, '/')) != NULL) { + while ((sep = strchr(sep, '\\')) != NULL) { *sep = 0; if (stat(dname, &sb) != 0) { if (nsmkdir(dname, S_IRWXU) != 0) { @@ -272,9 +272,9 @@ static nserror atari_mkdir_all(const char *fname) return NSERROR_NOT_DIRECTORY; } } - *sep = '/'; /* restore separator */ + *sep = '\\'; /* restore separator */ /* skip directory separators */ - while (*sep == '/') { + while (*sep == '\\') { sep++; } } |