summaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/901-basename.patch
blob: 180cf7b75558ad0b087b0b15399d31f48a38be86 (plain)
1
2
3
4
5
6
7
8
9
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -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;
 }