LRN: 0001-W32-create-parent-directory-for-a-new-file.patch
authorChristian Grothoff <christian@grothoff.org>
Fri, 5 Aug 2011 21:16:22 +0000 (21:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 5 Aug 2011 21:16:22 +0000 (21:16 +0000)
src/util/disk.c

index b53b556e178535beeecbfdea7928ea885314a5ad..31b610fe83262c764cfd0ea1e64fb295aa0e6eb3 100644 (file)
@@ -1369,6 +1369,7 @@ GNUNET_DISK_file_open (const char *fn,
     }
   else if (flags & GNUNET_DISK_OPEN_CREATE)
     {
+      (void) GNUNET_DISK_directory_create_for_file (expfn);
       if (flags & GNUNET_DISK_OPEN_TRUNCATE)
         disp = CREATE_ALWAYS;
       else