1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
DTB
f02d7770ed stuff idk 2024-07-23 20:04:30 -06:00
DTB
5d68132958 did stuff 2024-07-23 19:56:26 -06:00
6 changed files with 5 additions and 6 deletions

View File

@ -73,4 +73,4 @@ Copyright (C) 2024 DTB. License AGPLv3+: GNU AGPL version 3 or later
.SH SEE ALSO .SH SEE ALSO
cat(1), dd(1), dj(1), tee(1) cat(1p), dd(1), dj(1), tee(1p)

View File

@ -21,11 +21,10 @@ int main(int argc, char *argv[]){
fprintf(stderr, "%s: %s: %s\n", argv[0], argv[1], fprintf(stderr, "%s: %s: %s\n", argv[0], argv[1],
strerror(errno)); strerror(errno));
switch(errno){ switch(errno){
case EACCES: return EX_NOPERM;
case ELOOP: return EX_UNAVAILABLE;
case ENAMETOOLONG: return EX_OSERR; case ENAMETOOLONG: return EX_OSERR;
case ENOENT: return EX_NOINPUT; case EACCES: return EX_NOPERM;
case ENOTDIR: return EX_NOINPUT; case ENOENT: case ENOTDIR:
return EX_NOINPUT;
default: return EX_UNAVAILABLE; default: return EX_UNAVAILABLE;
} }
} }