1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-28 02:50:16 +03:00

nspawn: fix two typos in error messages

On errors, mention the functions that really failed.
This commit is contained in:
Daniel Mack 2016-01-06 14:56:14 +01:00
parent e7c1446ee1
commit d2b8497d3c

View File

@ -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;