From: Robert Swiecki Date: Mon, 19 Feb 2018 16:41:37 +0000 (+0100) Subject: compare behaves like strcmp with results X-Git-Tag: 2.6~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70b9565250472bcc7d2df87d8374145b9a0fc48e;p=platform%2Fupstream%2Fnsjail.git compare behaves like strcmp with results --- diff --git a/mnt.cc b/mnt.cc index 0b5ca16..9b3e1a1 100644 --- 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 (mpt->fs_type.compare("proc")) { + if (mpt->fs_type.compare("proc") == 0) { 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 "