Mailinglist Archive: yast-commit (723 mails)

< Previous Next >
[yast-commit] r47446 - /trunk/network/src/installation/inst_hostname.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Mon, 12 May 2008 11:29:20 -0000
  • Message-id: <20080512112920.7D9F12A454@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Mon May 12 13:29:20 2008
New Revision: 47446

URL: http://svn.opensuse.org/viewcvs/yast?rev=47446&view=rev
Log:
Trying to fix #383336: generate random hostname &
write evil 127.0.0.2 line to /etc/hosts also in
case of autoconfiguration

Modified:
trunk/network/src/installation/inst_hostname.ycp

Modified: trunk/network/src/installation/inst_hostname.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/src/installation/inst_hostname.ycp?rev=47446&r1=47445&r2=47446&view=diff
==============================================================================
--- trunk/network/src/installation/inst_hostname.ycp (original)
+++ trunk/network/src/installation/inst_hostname.ycp Mon May 12 13:29:20 2008
@@ -28,7 +28,7 @@
DNS::Read (); // handles NetworkConfig too

if (DNS::hostname == "linux")
-{
+{
srandom ();
DNS::hostname = "linux-" + String::Random (4); // #157107
}
@@ -37,9 +37,13 @@
NetworkConfig::DHCP["DHCLIENT_SET_HOSTNAME"] = ! Arch::is_laptop ();
// TODO: policy for proposing a hostname

-Wizard::SetDesktopIcon("dns");
+symbol ret = `next;

-symbol ret = HostnameDialog ();
+if ( ! GetInstArgs::automatic_configuration() )
+{
+ Wizard::SetDesktopIcon("dns");
+ ret = HostnameDialog ();
+}

if (ret == `next)
{

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages