projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7c1446
)
nspawn: fix two typos in error messages
author
Daniel Mack
<daniel@zonque.org>
Wed, 6 Jan 2016 13:56:14 +0000
(14:56 +0100)
committer
Daniel Mack
<daniel@zonque.org>
Wed, 6 Jan 2016 13:57:29 +0000
(14:57 +0100)
On errors, mention the functions that really failed.
src/nspawn/nspawn-setuid.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn-setuid.c
b/src/nspawn/nspawn-setuid.c
index aa6a16309c988d416c7610c9678dc09a114ac7af..014a40b24314915d4cf090ade26dd2b88c9ee871 100644
(file)
--- 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, "setre
s
gid() failed: %m");
if (setresuid(uid, uid, uid) < 0)
- return log_error_errno(errno, "setreuid() failed: %m");
+ return log_error_errno(errno, "setre
s
uid() failed: %m");
if (_home) {
*_home = home;