diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/log.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -194,6 +194,8 @@ LogFilePrep(const char *fname, const char *backup, const char *idstring) { char *logFileName = NULL; + /* the format string below is controlled by the user, + this code should never be called with elevated privileges */ if (asprintf(&logFileName, fname, idstring) == -1) FatalError("Cannot allocate space for the log file name\n"); |