renamefile-for-mrafslogs-20050414
authorDerrick Brashear <shadow@dementia.org>
Thu, 14 Apr 2005 05:29:34 +0000 (05:29 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 14 Apr 2005 05:29:34 +0000 (05:29 +0000)
call the renamefile wrapper so mrafs style logs on windows work like other logs

src/util/serverLog.c

index 7b63bff..e0e97d6 100644 (file)
@@ -247,7 +247,7 @@ OpenLog(const char *fileName)
                     TimeFields->tm_mon + 1, TimeFields->tm_mday,
                     TimeFields->tm_hour, TimeFields->tm_min,
                     TimeFields->tm_sec);
-       rename(fileName, FileName);     /* don't check error code */
+       renamefile(fileName, FileName); /* don't check error code */
        tempfd = open(fileName, O_WRONLY | O_TRUNC | O_CREAT, 0666);
     } else {
        strcpy(oldName, fileName);