diff options
author | 2018-12-25 13:10:18 +0900 | |
---|---|---|
committer | 2018-12-28 15:37:15 +0900 | |
commit | a5c67ccc575e6ebf12710cb7df84f65a51c5dc58 (patch) | |
tree | 6f9aec5b2cbd03e178af42a71ad78ff31d424fce | |
parent | core: free lines after reading them (diff) | |
download | systemd-a5c67ccc575e6ebf12710cb7df84f65a51c5dc58.tar.gz systemd-a5c67ccc575e6ebf12710cb7df84f65a51c5dc58.tar.bz2 systemd-a5c67ccc575e6ebf12710cb7df84f65a51c5dc58.zip |
switch-root: fix error message
Fixes #11261.
-rw-r--r-- | src/shared/switch-root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/switch-root.c b/src/shared/switch-root.c index ee31c448f..dbb462231 100644 --- a/src/shared/switch-root.c +++ b/src/shared/switch-root.c @@ -83,7 +83,7 @@ int switch_root(const char *new_root, (void) mkdir_p_label(chased, 0755); if (mount(i, chased, NULL, mount_flags, NULL) < 0) - return log_error_errno(r, "Failed to mount %s to %s: %m", i, chased); + return log_error_errno(errno, "Failed to mount %s to %s: %m", i, chased); } /* Do not fail if base_filesystem_create() fails. Not all switch roots are like base_filesystem_create() wants |