From: Vladimir Jelen Date: Mon, 10 Jul 2006 13:56:39 +0000 (+0200) Subject: fix - allow logfiles larger then 2G X-Git-Tag: holmes-import~640^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6df99bd7aa4eea1688e68989f234698c568150e7;p=libucw.git fix - allow logfiles larger then 2G --- 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);