projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc66892
)
basename: fix error code. again. deja vu feeling...
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Nov 2008 15:13:33 +0000
(15:13 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Nov 2008 15:13:33 +0000
(15:13 -0000)
coreutils/basename.c
patch
|
blob
|
history
diff --git
a/coreutils/basename.c
b/coreutils/basename.c
index a3085ede3079eded33e0f901725f06f1937c5416..8a5597e65d16e2d0517b39a153d4b9750b19ad34 100644
(file)
--- a/
coreutils/basename.c
+++ b/
coreutils/basename.c
@@
-48,5
+48,6
@@
int basename_main(int argc, char **argv)
/* 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;
}