stuff idk
This commit is contained in:
parent
5d68132958
commit
f02d7770ed
@ -73,4 +73,4 @@ Copyright (C) 2024 DTB. License AGPLv3+: GNU AGPL version 3 or later
|
||||
|
||||
.SH SEE ALSO
|
||||
|
||||
cat(1), dd(1), dj(1), tee(1)
|
||||
cat(1p), dd(1), dj(1), tee(1p)
|
||||
|
@ -127,7 +127,7 @@ int main(int argc, char *argv[]){
|
||||
}
|
||||
|
||||
restore_echo(0);
|
||||
|
||||
|
||||
if(outputs[2] /* -p */ != NULL){
|
||||
fclose(outputs[2]);
|
||||
close(p[1]);
|
||||
|
@ -21,11 +21,10 @@ int main(int argc, char *argv[]){
|
||||
fprintf(stderr, "%s: %s: %s\n", argv[0], argv[1],
|
||||
strerror(errno));
|
||||
switch(errno){
|
||||
case EACCES: return EX_NOPERM;
|
||||
case ELOOP: return EX_UNAVAILABLE;
|
||||
case ENAMETOOLONG: return EX_OSERR;
|
||||
case ENOENT: return EX_NOINPUT;
|
||||
case ENOTDIR: return EX_NOINPUT;
|
||||
case EACCES: return EX_NOPERM;
|
||||
case ENOENT: case ENOTDIR:
|
||||
return EX_NOINPUT;
|
||||
default: return EX_UNAVAILABLE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user