Hello community,

here is the log from the commit of package yast2-users for openSUSE:Factory 
checked in at 2020-07-30 09:59:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-users (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-users.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-users"

Thu Jul 30 09:59:55 2020 rev:234 rq:823189 version:4.3.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-users/yast2-users.changes  2020-07-21 
15:47:54.208111189 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-users.new.3592/yast2-users.changes        
2020-07-30 10:00:19.291229134 +0200
@@ -1,0 +2,7 @@
+Fri Jul 24 14:00:40 UTC 2020 - David Diaz <[email protected]>
+
+- Load the right nsswitch.conf from either, /usr/etc or /etc
+- Related to bsc#1173119.
+- 4.3.5
+
+-------------------------------------------------------------------

Old:
----
  yast2-users-4.3.4.tar.bz2

New:
----
  yast2-users-4.3.5.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.g1L0Dd/_old  2020-07-30 10:00:20.151229648 +0200
+++ /var/tmp/diff_new_pack.g1L0Dd/_new  2020-07-30 10:00:20.151229648 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        4.3.4
+Version:        4.3.5
 Release:        0
 Summary:        YaST2 - User and Group Configuration
 License:        GPL-2.0-only
@@ -46,8 +46,8 @@
 Requires:       perl-gettext
 Requires:       yast2-country
 
-# Autologin.supported?
-Requires:       yast2-pam >= 4.2.0
+# CFA::Nsswitch
+Requires:       yast2-pam >= 4.3.0
 
 Requires:       yast2-security
 

++++++ yast2-users-4.3.4.tar.bz2 -> yast2-users-4.3.5.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.3.4/package/yast2-users.changes 
new/yast2-users-4.3.5/package/yast2-users.changes
--- old/yast2-users-4.3.4/package/yast2-users.changes   2020-07-15 
09:41:52.000000000 +0200
+++ new/yast2-users-4.3.5/package/yast2-users.changes   2020-07-28 
17:02:15.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Fri Jul 24 14:00:40 UTC 2020 - David Diaz <[email protected]>
+
+- Load the right nsswitch.conf from either, /usr/etc or /etc
+- Related to bsc#1173119.
+- 4.3.5
+
+-------------------------------------------------------------------
 Tue Jul 14 15:06:32 UTC 2020 - José Iván López González <[email protected]>
 
 - Use available kadmin.local binary (either at /usr/lib/mit/sbin
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.3.4/package/yast2-users.spec 
new/yast2-users-4.3.5/package/yast2-users.spec
--- old/yast2-users-4.3.4/package/yast2-users.spec      2020-07-15 
09:41:52.000000000 +0200
+++ new/yast2-users-4.3.5/package/yast2-users.spec      2020-07-28 
17:02:15.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        4.3.4
+Version:        4.3.5
 Release:        0
 Summary:        YaST2 - User and Group Configuration
 License:        GPL-2.0-only
@@ -46,8 +46,8 @@
 Requires:       perl-gettext
 Requires:       yast2-country
 
-# Autologin.supported?
-Requires:       yast2-pam >= 4.2.0
+# CFA::Nsswitch
+Requires:       yast2-pam >= 4.3.0
 
 Requires:       yast2-security
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-4.3.4/src/modules/Users.pm 
new/yast2-users-4.3.5/src/modules/Users.pm
--- old/yast2-users-4.3.4/src/modules/Users.pm  2020-07-15 09:41:52.000000000 
+0200
+++ new/yast2-users-4.3.5/src/modules/Users.pm  2020-07-28 17:02:15.000000000 
+0200
@@ -251,6 +251,7 @@
 YaST::YCP::Import ("UsersSimple");
 YaST::YCP::Import ("UsersUI");
 YaST::YCP::Import ("SSHAuthorizedKeys");
+YaST::YCP::Import ("Nsswitch");
 
 ##-------------------------------------------------------------------------
 ##----------------- various routines --------------------------------------
@@ -5750,15 +5751,12 @@
 BEGIN { $TYPEINFO{ReadNISAvailable} = ["function", "boolean"];}
 sub ReadNISAvailable {
 
-    my $passwd_source = SCR->Read (".etc.nsswitch_conf.passwd");
-    if (defined $passwd_source) {
-       foreach my $source (split (/ /, $passwd_source)) {
+    my $passwd_source = Nsswitch->ReadDb ("passwd");
 
-           if ($source eq "nis" || $source eq "compat") {
-               return (Package->Installed ("ypbind") && Service->Status 
("ypbind") == 0);
-           }
-       }
+    if ( grep ( /^(nis|compat)$/, @$passwd_source ) ) {
+      return (Package->Installed ("ypbind") && Service->Status ("ypbind") == 
0);
     }
+
     return 0;
 }
 ##-------------------------------------------------------------------------


Reply via email to