freebsd-ports/sysutils/cronolog/files/extrapatch-src_cronoutils.c
Shaun Amott fb8e207814 Fix bug in symlinked log file handling.
PR:		ports/104919
Submitted by:	David Wood <david@wood2.org.uk>
Obtained from:	http://cronolog.org/patches/cronolog-missing-symlink-patch.txt
2006-12-11 01:00:20 +00:00

11 lines
335 B
C

--- cronolog-1.6.2/src/cronoutils.c.orig Thu May 3 17:43:21 2001
+++ cronolog-1.6.2/src/cronoutils.c Mon Dec 11 00:48:23 2006
@@ -199,7 +199,7 @@
{
unlink(prevlinkname);
}
- if (stat(linkname, &stat_buf) == 0)
+ if (lstat(linkname, &stat_buf) == 0)
{
if (prevlinkname) {
rename(linkname, prevlinkname);