summaryrefslogtreecommitdiff
path: root/src/shared/copy.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-12-20 11:09:08 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-12-21 01:50:33 +0900
commit5bb1d7fbab469b350d132cbbd2c794ffacef1b81 (patch)
treea48b1d5b73e72593b922c67c3946c80121841db0 /src/shared/copy.c
parent19ee48a6c29a03f6475689667b5c625a41589e72 (diff)
downloadsystemd-5bb1d7fbab469b350d132cbbd2c794ffacef1b81.tar.gz
tree-wide: use -EBADF more
Diffstat (limited to 'src/shared/copy.c')
-rw-r--r--src/shared/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c
index e103aa0f7f..4eb4f9f765 100644
--- a/src/shared/copy.c
+++ b/src/shared/copy.c
@@ -526,7 +526,7 @@ static int hardlink_context_setup(
const char *to,
CopyFlags copy_flags) {
- _cleanup_close_ int dt_copy = -1;
+ _cleanup_close_ int dt_copy = -EBADF;
int r;
assert(c);