Update os/log.c

this cleans up comments

Co-authored-by: Vedraj Gawas <gawasvedraj@gmail.com>
This commit is contained in:
Collin 2025-06-26 21:14:02 -05:00 committed by GitHub
parent 4967b25b95
commit 9550c28e6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,7 +178,7 @@ LogFilePrep(const char *fname, const char *backup, const char *idstring)
if (asprintf(&logFileName, fname, idstring) == -1)
FatalError("Cannot allocate space for the log file name\n");
int fd = open(logFileName, O_RDWR | O_NOFOLLOW);Add commentMore actions
int fd = open(logFileName, O_RDWR | O_NOFOLLOW);
if (fd != -1) {
struct stat buf;
if (fstat(fd, &buf) == 0 && S_ISREG(buf.st_mode)) {