X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Flog.c;h=f459fb1dcee01c9a33814e861bffa9b4765c997c;hb=659228360513b8d8b5180dfc1455bf01b0f8767a;hp=06540ce5eb17499e2561ca130ffa580b9bf3919a;hpb=fd446dea5b8ff2ac645272686f2be5308fd71f43;p=yaz-moved-to-github.git diff --git a/src/log.c b/src/log.c index 06540ce..f459fb1 100644 --- a/src/log.c +++ b/src/log.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: log.c,v 1.26 2005-09-09 10:33:45 adam Exp $ + * $Id: log.c,v 1.27 2005-09-09 11:29:54 adam Exp $ */ /** @@ -164,8 +164,10 @@ static void rotate_log() /* windows can't rename a file if it is open */ fclose(l_file); l_file = stderr; -#endif + MoveFileEx(l_fname, newname, MOVEFILE_REPLACE_EXISTING); +#else rename(l_fname, newname); +#endif yaz_log_reopen(); }