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:
mkaply%us.ibm.com 2002-09-19 21:17:21 +00:00
parent a9858d8274
commit 2b788f5bfc

View File

@ -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) {