tree-wide: change initialization to use EBADF instead of EBADFD

Those fds never were, so it's not fair to say that they are in "bad state".
Let's use the shorter and more direct errno.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-12-19 15:00:59 +01:00
parent 254d1313ae
commit a5937dcf39
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ static int fd_is_read_only_fs(int fd) {
}
int path_is_read_only_fs(const char *path) {
_cleanup_close_ int fd = -EBADFD;
_cleanup_close_ int fd = -EBADF;
assert(path);