Skip to content

Commit

Permalink
Use /sbin/rpcinfo only, /usr/sbin/rpcinfo is gone (bsc#1127138).
Browse files Browse the repository at this point in the history
The delimiter in its output is a tab, not a space
  • Loading branch information
mvidner committed Feb 27, 2019
1 parent 55f2f4e commit c6f4800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/network/src/modules/NetworkPopup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def NFSServer(selected)
UI.OpenDialog(Label(_("Scanning for hosts on this LAN...")))
# #71064
# this works also if ICMP broadcasts are ignored
cmd = "/usr/sbin/rpcinfo -b mountd 1 | /usr/bin/cut -d ' ' -f 2 | /usr/bin/sort -u"
cmd = "/sbin/rpcinfo -b mountd 1 | /usr/bin/cut -f 2 | /usr/bin/sort -u"
out = Convert.to_map(SCR.Execute(path(".target.bash_output"), cmd))
@found_nfs_servers = Builtins.filter(
Builtins.splitstring(Ops.get_string(out, "stdout", ""), "\n")
Expand Down

0 comments on commit c6f4800

Please sign in to comment.