Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc (Debian 12.2.0-14) 12.2.0 sn_logfile.c:96:8: warning: passing argument 1 of 'fchmod' makes integer from pointer without a cast [-Wint-conversion] fchmod() takes a file descriptor, not a pointer to FILE, so the call to fchmod() always failed. In order not to involve fileno(), just use chmod(), which takes a pathname, which the function already knows.
- Loading branch information