Handle shares like 193.9.101.0/24
authorJamie Cameron <jcameron@webmin.com>
Thu, 25 Oct 2007 16:58:41 +0000 (16:58 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 25 Oct 2007 16:58:41 +0000 (16:58 +0000)
dfsadmin/dfs-lib.pl

index c5e5981..115ebdb 100644 (file)
@@ -37,7 +37,7 @@ while(<DFS>) {
                        $lnum++;
                        }
                $share->{'eline'} = $lnum;
-               if ($line =~ /(\/\S+)/) {
+               if ($line =~ /\s(\/\S+)/) {
                        $share->{'dir'} = $1;
                        }
                if ($line =~ /-d\s+"([^"]+)"/) { $share->{'desc'} = $1; }