From: short <> Date: Fri, 8 Jul 2005 03:15:07 +0000 (+0000) Subject: Improved safe errors set during unbundling. X-Git-Tag: udpgate-1_0_2~4 X-Git-Url: https://git.jankratochvil.net/?a=commitdiff_plain;h=8023c928478748349c8f85bcb633254071d81657;hp=ebbe5e497e354f7776e3bb8a65d89583e927fcb7;p=udpgate.git Improved safe errors set during unbundling. --- diff --git a/src/bundle-util.c b/src/bundle-util.c index 5149abf..52a6afc 100644 --- a/src/bundle-util.c +++ b/src/bundle-util.c @@ -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; }