Improved safe errors set during unbundling.
[udpgate.git] / src / bundle-util.c
index 5149abf..52a6afc 100644 (file)
@@ -259,7 +259,7 @@ struct dir_stack **mkdirs_tail_pointer;
        g_assert(!mkdirs);
 
        if (-1==(fd=open(pathname,O_WRONLY|O_CREAT|O_TRUNC,pathname_mode))) {
-               if (errno!=EACCES)
+               if (errno!=EACCES && errno!=ENOENT)
                        g_warning(_("Error opening the file \"%s\" for rewrite: %m"),pathname);
                return FALSE;
                }