diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-20 03:09:08 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-20 17:50:33 +0100 |
commit | 5bb1d7fbab469b350d132cbbd2c794ffacef1b81 (patch) | |
tree | a48b1d5b73e72593b922c67c3946c80121841db0 /src/sysusers | |
parent | tree-wide: introduce PIPE_EBADF macro (diff) | |
download | systemd-5bb1d7fbab469b350d132cbbd2c794ffacef1b81.tar.xz systemd-5bb1d7fbab469b350d132cbbd2c794ffacef1b81.zip |
tree-wide: use -EBADF more
Diffstat (limited to 'src/sysusers')
-rw-r--r-- | src/sysusers/sysusers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index b68a7d6d5a..6e197b964d 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -251,7 +251,7 @@ static int load_group_database(void) { static int make_backup(const char *target, const char *x) { _cleanup_(unlink_and_freep) char *dst_tmp = NULL; _cleanup_fclose_ FILE *dst = NULL; - _cleanup_close_ int src = -1; + _cleanup_close_ int src = -EBADF; const char *backup; struct stat st; int r; @@ -2093,7 +2093,7 @@ static int run(int argc, char *argv[]) { _cleanup_(loop_device_unrefp) LoopDevice *loop_device = NULL; _cleanup_(umount_and_rmdir_and_freep) char *unlink_dir = NULL; #endif - _cleanup_close_ int lock = -1; + _cleanup_close_ int lock = -EBADF; Item *i; int r; |