mirror of
https://github.com/unraid/webgui.git
synced 2026-05-05 01:09:25 -05:00
Revert "Shares: add open file detection for exclusive shares"
This reverts commit ecefb2c61e.
This commit is contained in:
@@ -15,7 +15,6 @@ $docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
|
||||
if (isset($_POST['open'])) {
|
||||
$name = $_POST['name'];
|
||||
if (exec("lsof -t +d ".escapeshellarg("/mnt/user/$name")." 2>/dev/null|wc -l")>0) die('1');
|
||||
exec("find ".escapeshellarg("/mnt/user/$name")." -type d ! -empty -maxdepth 0 2>/dev/null",$folders);
|
||||
foreach ($folders as $folder) {
|
||||
unset($names);
|
||||
|
||||
Reference in New Issue
Block a user