Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37732496
en ru br
ALT Linux repos
S:2.0.7-alt1
4.1: 1.24-alt11.M41.1
4.0: 1.24-alt11.M40.1
3.0: 1.02-alt0.1

Group :: System/Servers
RPM: ulogd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ulogd-1.24-fopen.patch
Download


diff -Naur ulogd-1.24-orig/conffile/conffile.c ulogd-1.24/conffile/conffile.c
--- ulogd-1.24-orig/conffile/conffile.c	2007-07-12 14:55:41.000000000 +0400
+++ ulogd-1.24/conffile/conffile.c	2007-07-12 14:56:02.000000000 +0400
@@ -136,7 +136,7 @@
 	char linebuf[LINE_LEN+1];
 	char *line = linebuf;
 
-	cfile = fopen(fname, "r");
+	cfile = fopen64(fname, "r");
 	if (!cfile)
 		return -ERROPEN;
 
diff -Naur ulogd-1.24-orig/extensions/ulogd_LOGEMU.c ulogd-1.24/extensions/ulogd_LOGEMU.c
--- ulogd-1.24-orig/extensions/ulogd_LOGEMU.c	2007-07-12 14:55:41.000000000 +0400
+++ ulogd-1.24/extensions/ulogd_LOGEMU.c	2007-07-12 14:56:50.000000000 +0400
@@ -83,7 +83,7 @@
 	case SIGHUP:
 		ulogd_log(ULOGD_NOTICE, "syslogemu: reopening logfile\n");
 		fclose(of);
-		of = fopen(syslogf_ce.u.string, "a");
+		of = fopen64(syslogf_ce.u.string, "a");
 		if (!of) {
 			ulogd_log(ULOGD_FATAL, "can't open syslogemu: %s\n",
 				strerror(errno));
@@ -103,7 +103,7 @@
 #ifdef DEBUG_LOGEMU
 	of = stdout;
 #else
-	of = fopen(syslogf_ce.u.string, "a");
+	of = fopen64(syslogf_ce.u.string, "a");
 	if (!of) {
 		ulogd_log(ULOGD_FATAL, "can't open syslogemu: %s\n", 
 			strerror(errno));
diff -Naur ulogd-1.24-orig/extensions/ulogd_OPRINT.c ulogd-1.24/extensions/ulogd_OPRINT.c
--- ulogd-1.24-orig/extensions/ulogd_OPRINT.c	2007-07-12 14:55:41.000000000 +0400
+++ ulogd-1.24/extensions/ulogd_OPRINT.c	2007-07-12 14:57:22.000000000 +0400
@@ -93,7 +93,7 @@
 	case SIGHUP:
 		ulogd_log(ULOGD_NOTICE, "PKTLOG: reopening logfile\n");
 		fclose(of);
-		of = fopen(outf_ce.u.string, "a");
+		of = fopen64(outf_ce.u.string, "a");
 		if (!of) {
 			ulogd_log(ULOGD_FATAL, "can't open PKTLOG: %s\n",
 				strerror(errno));
@@ -112,7 +112,7 @@
 #else
 	config_parse_file("OPRINT", &outf_ce);
 
-	of = fopen(outf_ce.u.string, "a");
+	of = fopen64(outf_ce.u.string, "a");
 	if (!of) {
 		ulogd_log(ULOGD_FATAL, "can't open PKTLOG: %s\n", 
 			strerror(errno));
diff -Naur ulogd-1.24-orig/ulogd.c ulogd-1.24/ulogd.c
--- ulogd-1.24-orig/ulogd.c	2007-07-12 14:55:41.000000000 +0400
+++ ulogd-1.24/ulogd.c	2007-07-12 14:59:07.000000000 +0400
@@ -474,7 +474,7 @@
 	} else if (!strcmp(name,"stdout"))
 		logfile = stdout;
 	else {
-		logfile = fopen(name, "a");
+		logfile = fopen64(name, "a");
 		if (!logfile) {
 			fprintf(stderr, "ERROR: can't open logfile %s: %s\n", 
 				name, strerror(errno));
@@ -612,7 +612,7 @@
 
 	if (logfile != stdout && logfile != &syslog_dummy) {
 		fclose(logfile);
-		logfile = fopen(logf_ce.u.string, "a");
+		logfile = fopen64(logf_ce.u.string, "a");
 		if (!logfile)
 			sigterm_handler(signal);
 	}
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin