syslogd/sysklogd-1.4.1-large.patch
Dirk Mueller 2144a0b3f4 Accepting request 28151 from home:jengelh:branches:Base:System
Copy from home:jengelh:branches:Base:System/syslogd via accept of submit request 28151 revision 3.
Request was accepted with message:
thanks!

OBS-URL: https://build.opensuse.org/request/show/28151
OBS-URL: https://build.opensuse.org/package/show/Base:System/syslogd?expand=0&rev=12
2010-01-06 17:06:41 +00:00

35 lines
1.3 KiB
Diff

Index: Makefile
===================================================================
--- Makefile.orig 2009-11-24 18:12:53.137377000 +0100
+++ Makefile 2009-11-24 18:12:53.675378000 +0100
@@ -29,7 +29,7 @@ MANDIR = /usr/man
# The following define determines whether the package adheres to the
# file system standard.
-FSSTND = -DFSSTND
+FSSTND = -DFSSTND -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
# The following define establishes ownership for the man pages.
# Avery tells me that there is a difference between Debian and
Index: syslogd.c
===================================================================
--- syslogd.c.orig 2009-11-24 18:12:53.143385000 +0100
+++ syslogd.c 2009-11-24 18:12:53.679395000 +0100
@@ -1030,6 +1030,7 @@ int main(argc, argv)
(void) signal(SIGCHLD, reapchild);
(void) signal(SIGALRM, domark);
(void) signal(SIGUSR1, Debug ? debug_switch : SIG_IGN);
+ (void) signal(SIGXFSZ, SIG_IGN);
(void) alarm(TIMERINTVL);
/* Create a partial message table for all file descriptors. */
@@ -2023,7 +2024,7 @@ void fprintlog(f, from, flags, msg)
errno = e;
logerror(f->f_un.f_fname);
}
- } else if (f->f_flags & SYNC_FILE)
+ } else if (f->f_type == F_FILE && (f->f_flags & SYNC_FILE))
(void) fsync(f->f_file);
break;