Subject: getnetgrent.c
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 07/31/2006 10:05:47
Hi,

looks like there remained a printf for debugging lib/libc/gen/getnetgrent.c:

Starting mountd.
/u/NetBSD/src/lib/libc/gen/getnetgrent.c, 429: add <hostname1>
/u/NetBSD/src/lib/libc/gen/getnetgrent.c, 429: add <hostname2>
a.s.o.

The following patch remedies that for me:


--- /u/NetBSD/src/lib/libc/gen/getnetgrent.c	2006-07-31 10:03:13.000000000 +0200
+++ /u/NetBSD/lsrc/lib/libc/gen/getnetgrent.c	2006-07-31 10:03:35.000000000 +0200
@@ -426,7 +426,9 @@
 		free(grp);
 		return 0;
 	}
+#if 0
 printf("%s, %d: add %s\n", __FILE__, __LINE__, grp);
+#endif
 	if (sl_add(sl, grp) == -1) {
 		free(grp);
 		return 0;

Kurt