From: Vladimir Jelen Date: Mon, 17 Jul 2006 08:44:52 +0000 (+0200) Subject: backport patch from head X-Git-Tag: holmes-import~638^2^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=fa72c5f0d7f539c7a081995f857f423721948fe4;p=libucw.git backport patch from head --- diff --git a/lib/log-file.c b/lib/log-file.c index c6575cc4..20dea918 100644 --- a/lib/log-file.c +++ b/lib/log-file.c @@ -8,6 +8,7 @@ */ #include "lib/lib.h" +#include "lib/lfs.h" #include #include @@ -37,7 +38,7 @@ do_log_switch(struct tm *tm) if (strcmp(name, log_filename)) { strcpy(log_filename, name); - fd = open(name, O_WRONLY | O_CREAT | O_APPEND, 0666); + fd = sh_open(name, O_WRONLY | O_CREAT | O_APPEND, 0666); if (fd < 0) die("Unable to open log file %s: %m", name); close(2);