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:
864b7fc
)
strcmp -> std::string::compare
author
Robert Swiecki
<robert@swiecki.net>
Sun, 18 Feb 2018 13:37:33 +0000
(14:37 +0100)
committer
Robert Swiecki
<robert@swiecki.net>
Sun, 18 Feb 2018 13:37:33 +0000
(14:37 +0100)
mnt.cc
patch
|
blob
|
history
diff --git
a/mnt.cc
b/mnt.cc
index
b26c249
..
0b5ca16
100644
(file)
--- a/
mnt.cc
+++ b/
mnt.cc
@@
-208,7
+208,7
@@
static bool mountPt(mount_t* mpt, const char* newroot, const char* tmpdir) {
} else {
PLOG_W("mount('%s') src:'%s' dst:'%s' failed",
describeMountPt(*mpt).c_str(), srcpath, dst);
- if (
strcmp(mpt->fs_type.c_str(), "proc") == 0
) {
+ if (
mpt->fs_type.compare("proc")
) {
PLOG_W(
"procfs can only be mounted if the original /proc doesn't have "
"any other file-systems mounted on top of it (e.g. /dev/null "