Oops - should have been a backslash here - thanks pkw@us.ibm.com
git-svn-id: svn://10.0.0.236/trunk@130081 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a9858d8274
commit
2b788f5bfc
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user