svn commit: trunk/busybox/coreutils
vda at busybox.net
vda at busybox.net
Thu Nov 6 15:13:34 UTC 2008
Author: vda
Date: 2008-11-06 07:13:33 -0800 (Thu, 06 Nov 2008)
New Revision: 23944
Log:
basename: fix error code. again. deja vu feeling...
Modified:
trunk/busybox/coreutils/basename.c
Changeset:
Modified: trunk/busybox/coreutils/basename.c
===================================================================
--- trunk/busybox/coreutils/basename.c 2008-11-06 12:54:29 UTC (rev 23943)
+++ trunk/busybox/coreutils/basename.c 2008-11-06 15:13:33 UTC (rev 23944)
@@ -48,5 +48,6 @@
/* 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;
+ /* NB: != is correct here: */
+ return full_write(STDOUT_FILENO, s, m) != (ssize_t)m;
}
More information about the busybox-cvs
mailing list