|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From 0e0f3ce5c1c3d4d112e2a4534fc895aca463e460 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
From: Ronny Chevalier <chevalier.ronny@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Date: Thu, 16 Oct 2014 23:22:06 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
Subject: [PATCH] shared: fix typo
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
(cherry picked from commit d3774a1b15ea86f6156269e7ed813830f0c4abb8)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
src/shared/capability.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
diff --git a/src/shared/capability.c b/src/shared/capability.c
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
index d2b901337f..0226542c6c 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
--- a/src/shared/capability.c
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+++ b/src/shared/capability.c
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -228,7 +228,7 @@ int drop_privileges(uid_t uid, gid_t gid, uint64_t keep_capabilities) {
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
* which we want to avoid. */
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
if (setresgid(gid, gid, gid) < 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
- log_error("Failed change group ID: %m");
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+ log_error("Failed to change group ID: %m");
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
return -errno;
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
@@ -244,7 +244,7 @@ int drop_privileges(uid_t uid, gid_t gid, uint64_t keep_capabilities) {
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
r = setresuid(uid, uid, uid);
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
if (r < 0) {
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
- log_error("Failed change user ID: %m");
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
+ log_error("Failed to change user ID: %m");
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
return -errno;
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
}
|
|
Zbigniew Jędrzejewski-Szmek |
ea1976 |
|