mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-09 19:30:29 +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;
|
return 0;
|
||||||
OnFail:
|
OnFail:
|
||||||
fprintf(stderr, "%s %s %s: %s\n", "error: cp", src, dst, strerror(errno));
|
fprintf(stderr, "%s %s %s: %s\n", "error: cp", src, dst, strerror(errno));
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue