Differences From:
File
src/file.c
part of check-in
[dbda8d6ce9]
- Initial check-in of m1 sources.
by
drh on
2007-07-21 14:10:57.
[view]
To:
File
src/file.c
part of check-in
[c7278fd013]
- Win32 port now functional except network operations. This commit was done on windows :-). See win32.txt for status of all commands. No networking commands are functional yet. All path operations are now functioning.
by
jnc on
2007-09-22 06:47:11.
Also file
src/file.c
part of check-in
[3c5482959c]
- Merge in the w32 changes.
by
drh on
2007-09-22 19:43:55.
[view]
@@ -106,9 +106,13 @@
if( !forceFlag ) return 1;
unlink(zName);
}
if( rc!=1 ){
+#ifdef __MINGW32__
+ return mkdir(zName);
+#else
return mkdir(zName, 0755);
+#endif
}
return 0;
}
@@ -189,9 +193,9 @@
fprintf(stderr, "pwd too big: max %d\n", sizeof(zPwd)-20);
exit(1);
}
blob_zero(pOut);
- blob_appendf(pOut, "%s/%s", zPwd, zOrigName);
+ blob_appendf(pOut, "%//%/", zPwd, zOrigName);
}
blob_resize(pOut, file_simplify_name(blob_buffer(pOut), blob_size(pOut)));
}