mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
cp should return -1 on failure
This commit is contained in:
parent
92e8c17478
commit
d60b06fa9f
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ int cp(const char *src, const char *dst) {
|
|||
return 0;
|
||||
OnFail:
|
||||
fprintf(stderr, "%s %s %s: %s\n", "error: cp", src, dst, strerror(errno));
|
||||
return 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue