Basename returns always 1. Attatched patch fixes the issue.

Please consider it for fixes-1.12.1

-nc
Index: coreutils/basename.c
===================================================================
--- coreutils/basename.c	(revision 23942)
+++ coreutils/basename.c	(working copy)
@@ -48,5 +48,5 @@
 
 	/* puts(s) will do, but we can do without stdio this way: */
 	s[m++] = '\n';
-	return full_write(STDOUT_FILENO, s, m) == (ssize_t)m;
+	return full_write(STDOUT_FILENO, s, m) != (ssize_t)m;
 }
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to