[Glibc-bsd-commits] r1353 - trunk/freebsd-utils/debian/patches

Robert Millan rmh at costa.debian.org
Sat Mar 18 15:58:31 UTC 2006


Author: rmh
Date: 2006-03-18 15:58:30 +0000 (Sat, 18 Mar 2006)
New Revision: 1353

Added:
   trunk/freebsd-utils/debian/patches/011_swapon_setprogname.diff
Log:
Use setprogname in swapon.

Added: trunk/freebsd-utils/debian/patches/011_swapon_setprogname.diff
===================================================================
--- trunk/freebsd-utils/debian/patches/011_swapon_setprogname.diff	2006-03-18 15:48:45 UTC (rev 1352)
+++ trunk/freebsd-utils/debian/patches/011_swapon_setprogname.diff	2006-03-18 15:58:30 UTC (rev 1353)
@@ -0,0 +1,11 @@
+--- src/sbin/swapon/swapon.c~	2006-03-18 16:56:04.000000000 +0100
++++ src/sbin/swapon/swapon.c	2006-03-18 16:57:03.000000000 +0100
+@@ -70,6 +70,8 @@
+ 	int ch, doall;
+ 	int sflag = 0, lflag = 0, hflag = 0;
+ 
++	setprogname (argv[0]);
++
+ 	if ((ptr = strrchr(argv[0], '/')) == NULL)
+ 		ptr = argv[0];
+ 	if (strstr(ptr, "swapon"))




More information about the Glibc-bsd-commits mailing list