зеркало из https://github.com/mozilla/pjs.git
Oops - should have been a backslash here - thanks pkw@us.ibm.com
This commit is contained in:
Родитель
ee449a7d6a
Коммит
9691e0f88d
|
@ -419,7 +419,7 @@ main(int argc, char **argv)
|
|||
/* The stat() function in OS/2 Visual Age C++ doesn't like a path with
|
||||
a trailing backslash. */
|
||||
if (todir[strlen(todir)-1] == '/')
|
||||
todir[strlen(todir)-1] = '/0';
|
||||
todir[strlen(todir)-1] = '\0';
|
||||
#endif
|
||||
if ((stat(todir, &sb) < 0 || !S_ISDIR(sb.st_mode)) &&
|
||||
mkdirs(todir, 0777) < 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче