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:
b7b6faf
)
Remove redundant check if UTS namespace is enabled
author
Mateusz Nowotyński
<maxmati4@gmail.com>
Wed, 20 Dec 2017 18:56:44 +0000
(19:56 +0100)
committer
GitHub
<noreply@github.com>
Wed, 20 Dec 2017 18:56:44 +0000
(19:56 +0100)
uts.c
patch
|
blob
|
history
diff --git
a/uts.c
b/uts.c
index fc3f585f93061dcd0110b271dd81c02c0bd8447e..6f8d1d7ef0c433461f2ba65668559dfa4cd196a4 100644
(file)
--- a/
uts.c
+++ b/
uts.c
@@
-32,9
+32,6
@@
bool utsInitNs(struct nsjconf_t* nsjconf) {
}
LOG_D("Setting hostname to '%s'", nsjconf->hostname);
- if (nsjconf->clone_newuts == false) {
- return true;
- }
if (sethostname(nsjconf->hostname, strlen(nsjconf->hostname)) == -1) {
PLOG_E("sethostname('%s')", nsjconf->hostname);
return false;