← Commit list

db1edde6d

Denis Vlasenko
Denis Vlasenko
2007-01-09
FAILED Duration: 3s

Subject

compilation fix by Bernhard Fischer

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

sysklogd/syslogd.c+4 -1
@@ -290,7 +290,9 @@ static void log_locally(char *msg)
goto reopen;
}
} else {
+#if ENABLE_FEATURE_ROTATE_LOGFILE
struct stat statf;
+#endif
reopen:
logFD = device_open(logFilePath, O_WRONLY | O_CREAT
| O_NOCTTY | O_APPEND | O_NONBLOCK);
@@ -340,8 +342,9 @@ static void log_locally(char *msg)
}
ftruncate(logFD, 0);
}
+ curFileSize +=
#endif
- curFileSize += full_write(logFD, msg, len);
+ full_write(logFD, msg, len);
fl.l_type = F_UNLCK;
fcntl(logFD, F_SETLKW, &fl);
}