summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenis Vlasenko2008-11-06 15:13:33 +0000
committerDenis Vlasenko2008-11-06 15:13:33 +0000
commit70e8f49f71b824bbc7c5ec825eb33108134d1ee5 (patch)
treea676566475c29b6932514ee396af4772710b7cd6 /coreutils
parentfc66892abdd0934b6cb81571882f46a21488337a (diff)
downloadbusybox-70e8f49f71b824bbc7c5ec825eb33108134d1ee5.zip
busybox-70e8f49f71b824bbc7c5ec825eb33108134d1ee5.tar.gz
basename: fix error code. again. deja vu feeling...
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/basename.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index a3085ed..8a5597e 100644
--- 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;
}