projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8db8c7
)
user: cons'ifize a var
author
Robert Swiecki
<robert@swiecki.net>
Sun, 20 May 2018 21:52:55 +0000
(23:52 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Sun, 20 May 2018 21:52:55 +0000
(23:52 +0200)
user.cc
patch
|
blob
|
history
diff --git
a/user.cc
b/user.cc
index
448f842
..
7c53a25
100644
(file)
--- a/
user.cc
+++ b/
user.cc
@@
-238,7
+238,7
@@
bool initNsFromChild(nsjconf_t* nsjconf) {
* Best effort because of /proc/self/setgroups
*/
LOG_D("setgroups(0, NULL)");
- gid_t* group_list = NULL;
+
const
gid_t* group_list = NULL;
if (setgroups(0, group_list) == -1) {
PLOG_D("setgroups(NULL) failed");
}