summaryrefslogtreecommitdiffstats
path: root/src/mount
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-08-25 19:11:55 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-08-26 02:27:23 +0200
commit82007efa44ad51b69514455f3229fac1a4b58256 (patch)
tree37a51f375b9d5fb005e7f414b7eab985a94e454b /src/mount
parentMerge pull request #28913 from keszybz/tmpfs-top-level-dir-mode (diff)
downloadsystemd-82007efa44ad51b69514455f3229fac1a4b58256.tar.xz
systemd-82007efa44ad51b69514455f3229fac1a4b58256.zip
mount/mount-tool: return correct errno
Follow-up for 9269296df05a724c6b121bcbb0b420c8b4088f2f
Diffstat (limited to 'src/mount')
-rw-r--r--src/mount/mount-tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c
index b167176a9f..a0dcdf53b6 100644
--- a/src/mount/mount-tool.c
+++ b/src/mount/mount-tool.c
@@ -559,7 +559,7 @@ static int transient_mount_set_properties(sd_bus_message *m) {
if (arg_mount_options)
if (!strextend_with_separator(&options, ",", arg_mount_options))
- return r;
+ return -ENOMEM;
if (options) {
log_debug("Using mount options: %s", options);