summaryrefslogtreecommitdiff
path: root/src/core/automount.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2023-05-05 09:10:49 +0200
committerDavid Tardon <dtardon@redhat.com>2023-05-05 09:10:56 +0200
commite652663a043cb80936bb12ad5c87766fc5150c24 (patch)
tree0be9d85c11057f6b66b3f4604c27fd85051a7599 /src/core/automount.c
parent754d8b9c330150fdb3767491e24975f7dfe2a203 (diff)
downloadsystemd-e652663a043cb80936bb12ad5c87766fc5150c24.tar.gz
tree-wide: use parse_fd()
Diffstat (limited to 'src/core/automount.c')
-rw-r--r--src/core/automount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/automount.c b/src/core/automount.c
index 4cffca419c..89755e3a9b 100644
--- a/src/core/automount.c
+++ b/src/core/automount.c
@@ -938,7 +938,7 @@ static int automount_deserialize_item(Unit *u, const char *key, const char *valu
} else if (streq(key, "pipe-fd")) {
int fd;
- if (safe_atoi(value, &fd) < 0 || fd < 0 || !fdset_contains(fds, fd))
+ if ((fd = parse_fd(value)) < 0 || !fdset_contains(fds, fd))
log_unit_debug(u, "Failed to parse pipe-fd value: %s", value);
else {
safe_close(a->pipe_fd);