Source

gnome-encfs / gnome-encfs

Diff from to

File gnome-encfs

         print(MSG_NO_MATCH)
         return False
     
+    rc = True
+
     for item in items:
         epath = item.attributes["encfs-path"]
         mpoint = item.attributes["mount-point"]
             msg += "mount point already in use"
         elif not os.path.isdir(mpoint):
             msg += "mount point does not exist or is not a directory"
+            rc = False
         else:
             cmd = ["encfs", "-o", "nonempty", "-S", epath, mpoint]
             p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
             p.communicate(input="%s\n" % item.secret)
             msg += p.returncode and "FAILED" or "OK"
+            rc &= not p.returncode
             
         print(msg)
 
-    return True
+    return rc
             
 # =============================================================================
 # main