Hello community, here is the log from the commit of package yast2-network for openSUSE:Factory checked in at 2019-02-11 21:17:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-network (Old) and /work/SRC/openSUSE:Factory/.yast2-network.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-network" Mon Feb 11 21:17:01 2019 rev:401 rq:672185 version:4.1.37 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-network/yast2-network.changes 2019-02-04 16:09:46.501996863 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-network.new.28833/yast2-network.changes 2019-02-11 21:17:05.299346748 +0100 @@ -1,0 +2,8 @@ +Wed Feb 6 14:16:54 UTC 2019 - knut.anders...@suse.com + +- bsc#1124002 + - do not crash when cloning and trying to read a device protocol + or portname. +- 4.1.37 + +------------------------------------------------------------------- Old: ---- yast2-network-4.1.36.tar.bz2 New: ---- yast2-network-4.1.37.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-network.spec ++++++ --- /var/tmp/diff_new_pack.93SrTJ/_old 2019-02-11 21:17:05.831346466 +0100 +++ /var/tmp/diff_new_pack.93SrTJ/_new 2019-02-11 21:17:05.835346465 +0100 @@ -17,7 +17,7 @@ Name: yast2-network -Version: 4.1.36 +Version: 4.1.37 Release: 0 BuildArch: noarch ++++++ yast2-network-4.1.36.tar.bz2 -> yast2-network-4.1.37.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.1.36/package/yast2-network.changes new/yast2-network-4.1.37/package/yast2-network.changes --- old/yast2-network-4.1.36/package/yast2-network.changes 2019-01-31 10:14:34.000000000 +0100 +++ new/yast2-network-4.1.37/package/yast2-network.changes 2019-02-06 16:19:48.000000000 +0100 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Wed Feb 6 14:16:54 UTC 2019 - knut.anders...@suse.com + +- bsc#1124002 + - do not crash when cloning and trying to read a device protocol + or portname. +- 4.1.37 + +------------------------------------------------------------------- Tue Jan 29 10:32:17 UTC 2019 - mfi...@suse.com - bnc#1123102 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.1.36/package/yast2-network.spec new/yast2-network-4.1.37/package/yast2-network.spec --- old/yast2-network-4.1.36/package/yast2-network.spec 2019-01-31 10:14:34.000000000 +0100 +++ new/yast2-network-4.1.37/package/yast2-network.spec 2019-02-06 16:19:48.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-network -Version: 4.1.36 +Version: 4.1.37 Release: 0 BuildArch: noarch diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-network-4.1.36/src/modules/LanItems.rb new/yast2-network-4.1.37/src/modules/LanItems.rb --- old/yast2-network-4.1.36/src/modules/LanItems.rb 2019-01-31 10:14:34.000000000 +0100 +++ new/yast2-network-4.1.37/src/modules/LanItems.rb 2019-02-06 16:19:48.000000000 +0100 @@ -2698,9 +2698,15 @@ if !chan_ids["stdout"].empty? chanids = String.CutBlanks(Ops.get_string(chan_ids, "stdout", "")) end + # we already know that kernel device exist, otherwise next above would apply - portname = ::File.read("/sys/class/net/#{device}/device/portname").strip - protocol = ::File.read("/sys/class/net/#{device}/device/protocol").strip + # FIXME: It seems that it is not always the case (bsc#1124002) + portname_file = "/sys/class/net/#{device}/device/portname" + portname = ::File.exist?(portname_file) ? ::File.read(portname_file).strip : "" + + protocol_file = "/sys/class/net/#{device}/device/protocol" + protocol = ::File.exist?(protocol_file) ? ::File.read(protocol_file).strip : "" + layer2_ret = SCR.Execute( path(".target.bash"), Builtins.sformat(