diff options
author | Daniel Mack <daniel@zonque.org> | 2016-01-06 14:56:14 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2016-01-06 14:57:29 +0100 |
commit | d2b8497d3cec5c454e407b681bbfe0b0b9415c70 (patch) | |
tree | d2032e836ec0ec40c88880753385246c134e393f | |
parent | e7c1446ee14bd0ca114086ee9505273717c501b1 (diff) |
nspawn: fix two typos in error messages
On errors, mention the functions that really failed.
-rw-r--r-- | src/nspawn/nspawn-setuid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nspawn/nspawn-setuid.c b/src/nspawn/nspawn-setuid.c index aa6a16309c..014a40b243 100644 --- a/src/nspawn/nspawn-setuid.c +++ b/src/nspawn/nspawn-setuid.c @@ -261,10 +261,10 @@ int change_uid_gid(const char *user, char **_home) { return log_error_errno(errno, "Failed to set auxiliary groups: %m"); if (setresgid(gid, gid, gid) < 0) - return log_error_errno(errno, "setregid() failed: %m"); + return log_error_errno(errno, "setresgid() failed: %m"); if (setresuid(uid, uid, uid) < 0) - return log_error_errno(errno, "setreuid() failed: %m"); + return log_error_errno(errno, "setresuid() failed: %m"); if (_home) { *_home = home; |