renamefile-for-mrafslogs-20050414
[openafs.git] / 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);