[system-tools] Possible bug in network backend (-d list_ifaces)

Juan Luis Baptiste <[email protected]>
Newsgroups gmane.comp.gnome.ximian.setup-tool
Organization Merlinux
Message-ID <200407070105.24437.juancho__1378.25812348655$1089180331$gmane$org@phreaker.net>
Hi,

I was playing arround with the network backend with the list_ifaces directive 
in an unsupported platform and I have found the following behavior:

If I run ./network-conf -d list_ifaces , I get the following output:

network - platform_unsup::Your platform [mandrake-11] is not supported.
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<!DOCTYPE network-ifaces []>

<network-ifaces>

  <interface>
    <active>1</active>
    <addr>127.0.0.1</addr>
    <dev>lo</dev>
    <mask>255.0.0.0</mask>
  </interface>

  <interface>
    <active>1</active>
    <addr>192.168.1.2</addr>
    <bcast>192.168.1.255</bcast>
    <dev>eth0</dev>
    <hwaddr>00:09:6B:53:FE:90</hwaddr>
    <mask>255.255.255.0</mask>
  </interface>

</network-ifaces>

<!-- GST: end of request -->

But if I add the --platform parameter, I get this:
./network-conf -d list_ifaces --platform mandrake-9.2

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<!DOCTYPE network-ifaces []>

<network-ifaces>

</network-ifaces>

<!-- GST: end of request -->

Shouldn't this command show the same output than the first one? and why, if 
the platform is unsupported is showing a correct output? is this a bug? it 
seems to me, IMO.


Cheers,
-- 
Juan Luis Baptiste
http://www.merlinux.org
http://knetworkconf.sf.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.