svn commit: trunk/busybox/miscutils

vda at busybox.net vda at busybox.net
Tue Aug 5 14:15:19 UTC 2008


Author: vda
Date: 2008-08-05 07:15:19 -0700 (Tue, 05 Aug 2008)
New Revision: 23050

Log:
man: yet another fixlet to "manpage link" code



Modified:
   trunk/busybox/miscutils/man.c


Changeset:
Modified: trunk/busybox/miscutils/man.c
===================================================================
--- trunk/busybox/miscutils/man.c	2008-08-05 13:45:22 UTC (rev 23049)
+++ trunk/busybox/miscutils/man.c	2008-08-05 14:15:19 UTC (rev 23050)
@@ -49,9 +49,10 @@
 	}
 
 	if (man) { /* man page, not cat page */
-		/* Test whether the man page is not a link to another one. */
+		/* Is this a link to another manpage? */
 		/* The link has the following on the first line: */
 		/* ".so another_man_page" */
+
 		struct stat sb;
 		char *line;
 		char *linkname, *p;
@@ -73,7 +74,7 @@
 		 * ".so man7/path_resolution.7\n<junk>"
 		 */
 		*strchrnul(line, '\n') = '\0';
-		linkname = p = skip_whitespace(&line[4]);
+		linkname = skip_whitespace(&line[4]);
 
 		/* If link has no slashes, we just replace man page name.
 		 * If link has slashes (however many), we go back *once*.




More information about the busybox-cvs mailing list