HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/local/usermin-1.750/usermount/usermount-lib.pl
# usermount-lib.pl
# Common functions for mounting and unmounting filesystems with the 'user'
# option set.

BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
&switch_to_remote_user();
do 'linux-lib.pl';

# parse_options(type, options)
# Convert an options string for some filesystem into the associative
# array %options
sub parse_options
{
local($_);
undef(%options);
if ($_[1] ne "-") {
        foreach (split(/,/, $_[1])) {
                if (/^([^=]+)=(.*)$/) { $options{$1} = $2; }
                else { $options{$_} = ""; }
                }
        }
}

1;