syslogd/sysklogd-1.4.1-large.patch
OBS User autobuild 2904bd5cd4 Accepting request 25079 from Base:System
Copy from Base:System/syslogd based on submit request 25079 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/25079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslogd?expand=0&rev=22
2009-11-27 13:54:43 +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;