[Midnightbsd-cvs] CVS Commit: main.c: Fix the logic bug that caused the custom versions
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Aug 9 20:44:49 EDT 2007
Log Message:
-----------
Fix the logic bug that caused the custom versions of warn(3) and
warnx(3) to be compiled on systems that have it (e.g. FreeBSD),
while the intention was opposite, i.e., compile them on systems
that don't have them. Also fixes static linkage of pkg_sign(1).
Modified Files:
--------------
src/usr.sbin/pkg_install/sign:
main.c (r1.1.1.1 -> r1.2)
-------------- next part --------------
Index: main.c
===================================================================
RCS file: /home/cvs/src/usr.sbin/pkg_install/sign/main.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -Lusr.sbin/pkg_install/sign/main.c -Lusr.sbin/pkg_install/sign/main.c -u -r1.1.1.1 -r1.2
--- usr.sbin/pkg_install/sign/main.c
+++ usr.sbin/pkg_install/sign/main.c
@@ -106,9 +106,9 @@
int i;
int type = TAG_ANY;
-/* #ifndef BSD4_4 */
+#ifndef BSD4_4
set_program_name(argv[0]);
-/* #endif */
+#endif
#ifdef CHECKER_ONLY
mode = CHECK;
#else
More information about the Midnightbsd-cvs
mailing list