Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Update class.EncfsMounter.php
Browse files Browse the repository at this point in the history
safe umount after shell mv cmd
  • Loading branch information
c12simple committed Aug 29, 2014
1 parent 568ab09 commit 888bd5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/cypher.encfs/class.EncfsMounter.php
Expand Up @@ -118,8 +118,8 @@ public function switchAction($actionName, $httpVars, $fileVars)
$cmd = "mv ". escapeshellarg($dir . DIRECTORY_SEPARATOR . $fileOrFolder)." ". escapeshellarg($clear . DIRECTORY_SEPARATOR);
$exec = shell_exec($cmd);
}
self::umountFolder($clear);
rmdir($dir);
self::umountFolder($clear);
}
} else if (substr(basename($dir), 0, strlen("ENCFS_CLEAR_")) == "ENCFS_CLEAR_") {
// SIMPLY UNMOUNT
Expand Down

0 comments on commit 888bd5c

Please sign in to comment.