Skip to content

Commit

Permalink
NFS version defaults to 3 for mounting.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyHightower committed Jun 16, 2014
1 parent 7ae9778 commit e99f547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/NFS/NFS.gsm
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ sub activate {
my $tmpDir=$dir; $tmpDir=~s?/?-?g; $tmpDir=~s/^-//;
$MainScan->System("/bin/mkdir -p /mnt/${host}/$tmpDir");
if (-d "/mnt/${host}/$tmpDir"){
my $error=$MainScan->TimedSystem($Timeout,"/bin/mount ${host}:$dir /mnt/${host}/$tmpDir -t nfs -o nolock >/dev/null 2>&1");
my $error=$MainScan->TimedSystem($Timeout,"/bin/mount ${host}:$dir /mnt/${host}/$tmpDir -t nfs -o nolock -o vers=3 >/dev/null 2>&1");
if ($error==0){
$MainScan->ConfigError($target, "vuln", "GSM-NFS-1", "Mounted NFS export $dir");
mkdir "${outputDir}/NFS";
Expand Down

0 comments on commit e99f547

Please sign in to comment.