diff options
author | clive <clive@FreeBSD.org> | 2002-06-22 14:25:41 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2002-06-22 14:25:41 +0800 |
commit | 419fc9794175f2f9d098cf24209dd16ddea1d24b (patch) | |
tree | 31a978f60f4e00c414e39b9bd6197bcf1d1c95d3 | |
parent | d0937df23c1c0bc0fef83f8b77c5756580172013 (diff) | |
download | freebsd-ports-gnome-419fc9794175f2f9d098cf24209dd16ddea1d24b.tar.gz freebsd-ports-gnome-419fc9794175f2f9d098cf24209dd16ddea1d24b.tar.zst freebsd-ports-gnome-419fc9794175f2f9d098cf24209dd16ddea1d24b.zip |
Do not fclose(3) a NULL stream. I bet no one will want his dmesg(8) output
to be spammed by
...
pid 12345 (dictd), uid 54321: exited on signal 11
pid 23456 (dictd), uid 54321: exited on signal 11
pid 34567 (dictd), uid 54321: exited on signal 11
...
-rw-r--r-- | net/dictd/files/patch-libmaa::log.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/dictd/files/patch-libmaa::log.c b/net/dictd/files/patch-libmaa::log.c new file mode 100644 index 000000000000..183882fb8abb --- /dev/null +++ b/net/dictd/files/patch-libmaa::log.c @@ -0,0 +1,11 @@ +--- libmaa/log.c.orig Sat Jun 22 14:12:51 2002 ++++ libmaa/log.c Sat Jun 22 14:12:56 2002 +@@ -245,7 +245,7 @@ + { + if (logFd >= 0) close( logFd ); + if (logUserStream != stdout && logUserStream != stderr) +- fclose( logUserStream ); ++ if (logUserStream) fclose( logUserStream ); + if (logSyslog) closelog(); + if (logFilename) xfree(logFilename); + if (logFilenameTmp) xfree(logFilenameTmp); |