SOURCES: proftpd-wtmp.patch, proftpd-mysql-typo.patch (REMOVED) - ...
glen
glen at pld-linux.org
Tue Jan 8 21:48:04 CET 2008
Author: glen Date: Tue Jan 8 20:48:04 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- update to 1.3.1
---- Files affected:
SOURCES:
proftpd-wtmp.patch (1.25 -> 1.26) , proftpd-mysql-typo.patch (1.1 -> NONE) (REMOVED)
---- Diffs:
================================================================
Index: SOURCES/proftpd-wtmp.patch
diff -u SOURCES/proftpd-wtmp.patch:1.25 SOURCES/proftpd-wtmp.patch:1.26
--- SOURCES/proftpd-wtmp.patch:1.25 Mon Aug 20 14:53:44 2007
+++ SOURCES/proftpd-wtmp.patch Tue Jan 8 21:47:58 2008
@@ -1,3 +1,14 @@
+--- proftpd-1.3.1/src/log.c 2008-01-08 22:33:30.946409026 +0200
++++ proftpd-1.3.1rc3/src/log.c 2007-02-15 18:54:09.000000000 +0200
+@@ -117,7 +117,7 @@
+ utx.ut_exit.e_exit = 0;
+ #endif /* HAVE_UT_UT_EXIT */
+ if (write(fdx, (char *)&utx, sizeof(utx)) != sizeof(utx))
+- (void) ftruncate(fdx, buf.st_size);
++ ftruncate(fdx, buf.st_size);
+
+ } else {
+ pr_log_debug(DEBUG0, "%s fstat(): %s", WTMPX_FILE, strerror(errno));
diff -ur proftpd-1.3.1rc2/acconfig.h proftpd-1.3.1rc2.wtmpx/acconfig.h
--- proftpd-1.3.1rc2/acconfig.h 2002-12-15 19:05:09.000000000 +0100
+++ proftpd-1.3.1rc2.wtmpx/acconfig.h 2007-08-20 14:44:18.000000000 +0200
@@ -221,7 +232,7 @@
- if (fd < 0 &&
- (fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
+ if (write(fdx, (char *)&utx, sizeof(utx)) != sizeof(utx))
-+ ftruncate(fdx, buf.st_size);
++ (void )ftruncate(fdx, buf.st_size);
+ } else {
+ pr_log_debug(DEBUG0, "%s fstat(): %s", wtmpx_file, strerror(errno));
+ res = -1;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/proftpd-wtmp.patch?r1=1.25&r2=1.26&f=u
More information about the pld-cvs-commit
mailing list