compare behaves like strcmp with results
authorRobert Swiecki <robert@swiecki.net>
Mon, 19 Feb 2018 16:41:37 +0000 (17:41 +0100)
committerRobert Swiecki <robert@swiecki.net>
Mon, 19 Feb 2018 16:41:37 +0000 (17:41 +0100)
mnt.cc

diff --git a/mnt.cc b/mnt.cc
index 0b5ca16d10e2446685f07b87a7f3c19b930a1aa6..9b3e1a1471b3e331991d6a3b90da09b7ed3ca121 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 (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 "