Skip to content

Commit

Permalink
Fixed a condition that was always true.
Browse files Browse the repository at this point in the history
The impact of the bug was small because other code queried DNS anyway and
filtered out the nonexistent host name.
  • Loading branch information
mvidner committed Jan 8, 2015
1 parent 682f6fb commit c422332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/nfs/ui.rb
Expand Up @@ -147,7 +147,7 @@ def ProposeHostname
ret = ""
cur_domain = Hostname.CurrentDomain

ret = Ops.add("nfs.", cur_domain) if cur_domain || cur_domain != ""
ret = "nfs.#{cur_domain}" if cur_domain && cur_domain != ""
ret
end

Expand Down
2 changes: 1 addition & 1 deletion src/modules/Nfs.rb
Expand Up @@ -387,7 +387,7 @@ def WriteOnly
Convert.convert(
Builtins.union(
entry,
"freq" => 0, "passno" => 0 # "vfstype": "nfs",
"freq" => 0, "passno" => 0
),
:from => "map",
:to => "map <string, any>"
Expand Down

0 comments on commit c422332

Please sign in to comment.