Hello community,

here is the log from the commit of package pwdutils for openSUSE:Factory 
checked in at 2012-03-19 10:12:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pwdutils (Old)
 and      /work/SRC/openSUSE:Factory/.pwdutils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pwdutils", Maintainer is "ku...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/pwdutils/pwdutils.changes        2011-11-24 
11:36:59.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.pwdutils.new/pwdutils.changes   2012-03-19 
10:12:28.000000000 +0100
@@ -1,0 +2,5 @@
+Tue Mar 13 15:56:01 CET 2012 - ku...@suse.de
+
+- Update to version 3.2.18 (fixes [bnc#738114])
+
+-------------------------------------------------------------------

Old:
----
  pwdutils-3.2.17.tar.bz2

New:
----
  pwdutils-3.2.18.tar.bz2

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

Other differences:
------------------
++++++ pwdutils.spec ++++++
--- /var/tmp/diff_new_pack.fd4LA6/_old  2012-03-19 10:12:30.000000000 +0100
+++ /var/tmp/diff_new_pack.fd4LA6/_new  2012-03-19 10:12:30.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pwdutils
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,21 +15,26 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 %define enable_selinux 1
 
 Name:           pwdutils
-BuildRequires:  audit-devel libnscd-devel libtool openldap2-devel 
openslp-devel openssl-devel pam-devel
+BuildRequires:  audit-devel
+BuildRequires:  libnscd-devel
+BuildRequires:  libtool
+BuildRequires:  openldap2-devel
+BuildRequires:  openslp-devel
+BuildRequires:  openssl-devel
+BuildRequires:  pam-devel
 %if %{enable_selinux}
 BuildRequires:  libselinux-devel
 %endif
 Url:            http://www.thkukuk.de/pam/pwdutils/
+Version:        3.2.18
+Release:        0
+Summary:        Utilities to Manage User and Group Accounts
 License:        GPL-2.0
 Group:          System/Base
-Version:        3.2.17
-Release:        4
-Summary:        Utilities to Manage User and Group Accounts
 Requires:       pam-modules
 Source:         pwdutils-%{version}.tar.bz2
 Source2:        ldap.conf
@@ -47,11 +52,9 @@
 
 
 %package plugin-audit
-License:        GPL-2.0
 Summary:        Plugin for the Linux Audit-Subsystem
 Group:          System/Base
 Requires:       pwdutils = %{version}
-AutoReqProv:    on
 
 %description plugin-audit
 This package includes the plugin for the password/account management
@@ -62,11 +65,9 @@
 
 
 %package rpasswd
-License:        GPL-2.0
 Summary:        Server/Client for secure remote password changing
 Group:          System/Base
 Requires:       pwdutils = %{version}
-AutoReqProv:    on
 
 %description rpasswd
 This package includes the server, client and a PAM module to change the

++++++ pwdutils-3.2.17.tar.bz2 -> pwdutils-3.2.18.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/ChangeLog 
new/pwdutils-3.2.18/ChangeLog
--- old/pwdutils-3.2.17/ChangeLog       2011-05-16 11:25:30.000000000 +0200
+++ new/pwdutils-3.2.18/ChangeLog       2012-03-13 14:15:33.000000000 +0100
@@ -1,3 +1,20 @@
+2012-03-13  Thorsten Kukuk  <ku...@suse.de>
+
+       * release version 3.2.18
+
+2012-01-31  Thorsten Kukuk  <ku...@suse.de>
+
+       * lib/chown_dir_rec.c (chown_entry): Check against correct
+       old values [bnc#738114].
+
+2011-08-05  Thorsten Kukuk  <ku...@suse.de>
+
+       * src/gpasswd.c (main): Remove dead code.
+
+2011-05-23  Thorsten Kukuk  <ku...@suse.de>
+
+       * lib/user.c (write_user_data): jump to correct label.
+
 2011-05=16  Thorsten Kukuk  <ku...@suse.de>
 
        * release 3.2.17
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/NEWS new/pwdutils-3.2.18/NEWS
--- old/pwdutils-3.2.17/NEWS    2011-05-16 11:25:51.000000000 +0200
+++ new/pwdutils-3.2.18/NEWS    2012-03-13 14:15:03.000000000 +0100
@@ -1,9 +1,12 @@
 pwdutils NEWS -- history of user-visible changes.
 
-Copyright (C) 2002-2011 Thorsten Kukuk
+Copyright (C) 2002-2012 Thorsten Kukuk
 
 Please send bug reports, questions and suggestions to <ku...@thkukuk.de>.
 
+Version 3.2.18
+* Fix changing of permissions if uid/gid of user will be modified
+
 Version 3.2.17
 * Fix useradd.local
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/configure 
new/pwdutils-3.2.18/configure
--- old/pwdutils-3.2.17/configure       2011-05-16 11:26:05.000000000 +0200
+++ new/pwdutils-3.2.18/configure       2012-03-13 14:15:42.000000000 +0100
@@ -2431,7 +2431,7 @@
 
 # Define the identity of the package.
  PACKAGE="pwdutils"
- VERSION=3.2.17
+ VERSION=3.2.18
 
 
 cat >>confdefs.h <<_ACEOF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/configure.in 
new/pwdutils-3.2.18/configure.in
--- old/pwdutils-3.2.17/configure.in    2011-05-16 11:25:40.000000000 +0200
+++ new/pwdutils-3.2.18/configure.in    2012-03-13 14:14:09.000000000 +0100
@@ -1,10 +1,10 @@
 dnl
-dnl Copyright (c) 2001-2010 Thorsten Kukuk, Germany
+dnl Copyright (c) 2001-2012 Thorsten Kukuk, Germany
 dnl
 dnl Author: Thorsten Kukuk <ku...@thkukuk.de>
 dnl
 AC_INIT(src/passwd.c)
-AM_INIT_AUTOMAKE("pwdutils", 3.2.17)
+AM_INIT_AUTOMAKE("pwdutils", 3.2.18)
 AM_CONFIG_HEADER(config.h)
 AC_PREFIX_DEFAULT(/usr)
 AC_CANONICAL_HOST
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/etc/useradd.local 
new/pwdutils-3.2.18/etc/useradd.local
--- old/pwdutils-3.2.17/etc/useradd.local       2011-05-16 13:20:20.000000000 
+0200
+++ new/pwdutils-3.2.18/etc/useradd.local       2011-05-20 10:28:19.000000000 
+0200
@@ -26,7 +26,7 @@
 
 # If SELinux is enabled, we have to run restorecon to assign
 # appropriate fcontexts to the respective $HOME and files under it
-if [ -x /usr/sbin/selinuxenabled -a ! /usr/sbin/selinuxenabled ] ; then
+if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled ; then
   test -x /sbin/restorecon || exit 2
 
   if [ $# -lt 4 ]; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/lib/chown_dir_rec.c 
new/pwdutils-3.2.18/lib/chown_dir_rec.c
--- old/pwdutils-3.2.17/lib/chown_dir_rec.c     2006-11-29 14:17:16.000000000 
+0100
+++ new/pwdutils-3.2.18/lib/chown_dir_rec.c     2012-01-31 17:11:45.000000000 
+0100
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2005 Thorsten Kukuk
+/* Copyright (C) 2003, 2005, 2012 Thorsten Kukuk
    Author: Thorsten Kukuk <ku...@suse.de>
 
    This program is free software; you can redistribute it and/or modify
@@ -39,14 +39,14 @@
   if (st->st_uid == old_uid)
     use_uid = new_uid;
   else
-    use_uid = old_uid;
+    use_uid = st->st_uid;
 
   if (st->st_gid == old_gid)
     use_gid = new_gid;
   else
-    use_gid = old_gid;
+    use_gid = st->st_gid;
 
-  if (use_uid != old_uid || use_gid != old_gid)
+  if (use_uid != st->st_uid || use_gid != st->st_gid)
     {
       if (lchown (entry, use_uid, use_gid) < 0)
        {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/lib/user.c 
new/pwdutils-3.2.18/lib/user.c
--- old/pwdutils-3.2.17/lib/user.c      2010-09-17 11:22:46.000000000 +0200
+++ new/pwdutils-3.2.18/lib/user.c      2011-05-23 10:13:39.000000000 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003, 2004, 2005, 2009, 2010 Thorsten Kukuk
+/* Copyright (C) 2002, 2003, 2004, 2005, 2009, 2010, 2011 Thorsten Kukuk
    Author: Thorsten Kukuk <ku...@thkukuk.de>
 
    This program is free software; you can redistribute it and/or modify
@@ -894,7 +894,7 @@
                       shadow_tmp);
              fclose (newpf);
              retval = -1;
-             goto error_passwd;
+             goto error_shadow;
            }
 
          if (fsync (fileno(newpf)) != 0)
@@ -904,7 +904,7 @@
                       shadow_tmp);
              fclose (newpf);
              retval = -1;
-             goto error_passwd;
+             goto error_shadow;
            }
 
          if (fclose (newpf) != 0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pwdutils-3.2.17/src/gpasswd.c 
new/pwdutils-3.2.18/src/gpasswd.c
--- old/pwdutils-3.2.17/src/gpasswd.c   2008-04-11 12:37:09.000000000 +0200
+++ new/pwdutils-3.2.18/src/gpasswd.c   2011-08-05 13:19:13.000000000 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003, 2004, 2005, 2006 Thorsten Kukuk
+/* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2011 Thorsten Kukuk
    Author: Thorsten Kukuk <ku...@suse.de>
 
    This program is free software; you can redistribute it and/or modify
@@ -115,7 +115,6 @@
   char *binddn = NULL;
   int P_flag = 0;
   group_t *gr_data;
-  char *caller_name;
   char *use_service = NULL;
   int stdin_flag = 0;
 
@@ -246,28 +245,6 @@
     }
   else
     {
-      int buflen = 256;
-      char *buffer = alloca (buflen);
-      struct passwd resultbuf;
-      struct passwd *pw;
-
-      /* Determine our own user name for authentication.  */
-      while (getpwuid_r (getuid (), &resultbuf, buffer, buflen, &pw) != 0
-            && errno == ERANGE)
-       {
-         errno = 0;
-         buflen += 256;
-         buffer = alloca (buflen);
-       }
-      if (!pw)
-       {
-         sec_log (program, MSG_NO_ACCOUNT_FOUND, getuid ());
-         fprintf (stderr, _("%s: Cannot determine your user name.\n"),
-                  program);
-         return E_NOPERM;
-       }
-      caller_name = strdupa (pw->pw_name);
-
       group = argv[0];
       gr_data = find_group_data (group, 0, use_service);
       if (gr_data == NULL || gr_data->service == S_NONE)

++++++ pwdutils-no-add-needed.patch ++++++
--- /var/tmp/diff_new_pack.fd4LA6/_old  2012-03-19 10:12:30.000000000 +0100
+++ /var/tmp/diff_new_pack.fd4LA6/_new  2012-03-19 10:12:30.000000000 +0100
@@ -7,7 +7,7 @@
 -AC_INIT(src/passwd.c)
 +AC_INIT
 +AC_CONFIG_SRCDIR([src/passwd.c])
- AM_INIT_AUTOMAKE("pwdutils", 3.2.17)
+ AM_INIT_AUTOMAKE("pwdutils", 3.2.18)
 -AM_CONFIG_HEADER(config.h)
 +AC_CONFIG_MACRO_DIR([m4])
 +AC_CONFIG_HEADERS([config.h])

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to