basename: fix error code. again. deja vu feeling...
This commit is contained in:
parent
fc66892abd
commit
70e8f49f71
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user