Author: kmachalkova Date: Wed Dec 10 14:15:19 2008 New Revision: 54027 URL: http://svn.opensuse.org/viewcvs/yast?rev=54027&view=rev Log: use rpcbind's rpcinfo, it is faster than the one from glibc (#450056) Modified: trunk/nfs-client/src/ui.ycp Modified: trunk/nfs-client/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/nfs-client/src/ui.ycp?rev=54027&r1=54026&r2=54027&view=diff ============================================================================== --- trunk/nfs-client/src/ui.ycp (original) +++ trunk/nfs-client/src/ui.ycp Wed Dec 10 14:15:19 2008 @@ -274,11 +274,18 @@ { if (hosts == nil) { + //newer, shinier, better rpcinfo from rpcbind (#450056) + string prog_name = "/sbin/rpcinfo"; + + //fallback from glibc + if( !FileUtils::Exists(prog_name) ) + prog_name = "/usr/sbin/rpcinfo"; + // label message UI::OpenDialog(`Label(_("Scanning for hosts on this LAN..."))); // #71064 // this works also if ICMP broadcasts are ignored - string cmd = "/usr/sbin/rpcinfo -b mountd 1 | cut -d ' ' -f 2 | sort -u"; + string cmd = prog_name + " -b mountd 1 | cut -d ' ' -f 2 | sort -u"; map out = (map) SCR::Execute (.target.bash_output, cmd); hosts = filter (string s, splitstring (out["stdout"]:"", "\n"), ``( s != "")); UI::CloseDialog(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org