X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Flog-file.c;h=20dea918c80ae13813913ecd05f58a7b4d99971d;hb=7b9f085a0cc79ca3263b1fdaff66119bd03a49f6;hp=c6575cc42f726d3f4b1870315aea423fa8e74acc;hpb=f14ddc51661615c9f9daa70f1ef8f3abe0e2be37;p=libucw.git 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);