Hello community, here is the log from the commit of package pwdutils for openSUSE:Factory checked in at Thu May 12 10:49:41 CEST 2011.
-------- --- pwdutils/pwdutils.changes 2011-02-02 13:05:56.000000000 +0100 +++ /mounts/work_src_done/STABLE/pwdutils/pwdutils.changes 2011-05-11 16:26:15.000000000 +0200 @@ -1,0 +2,8 @@ +Wed May 11 16:23:00 CEST 2011 - [email protected] + +- Update to pwdutils version 3.2.16 + - sha512 new default password hash [FATE#312321]. + - newgrp: honour dynamically assigned groups [bnc#680833]. +- Don't link against libxcrypt + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- pwdutils-3.2.14.tar.bz2 pwdutils-selinux-useradd.patch New: ---- pwdutils-3.2.16.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pwdutils.spec ++++++ --- /var/tmp/diff_new_pack.5Dev8V/_old 2011-05-12 10:48:33.000000000 +0200 +++ /var/tmp/diff_new_pack.5Dev8V/_new 2011-05-12 10:48:33.000000000 +0200 @@ -20,7 +20,7 @@ %define enable_selinux 1 Name: pwdutils -BuildRequires: audit-devel libnscd-devel libxcrypt-devel openldap2-devel openslp-devel openssl-devel pam-devel +BuildRequires: audit-devel libnscd-devel openldap2-devel openslp-devel openssl-devel pam-devel %if %{enable_selinux} BuildRequires: libselinux-devel %endif @@ -28,7 +28,7 @@ License: GPLv2 Group: System/Base AutoReqProv: on -Version: 3.2.14 +Version: 3.2.16 Release: 1 Summary: Utilities to Manage User and Group Accounts Requires: pam-modules @@ -36,7 +36,6 @@ Source2: ldap.conf Source3: useradd.default Source4: baselibs.conf -Patch0: %{name}-selinux-useradd.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -76,7 +75,6 @@ %prep %setup -q -%patch0 %build %configure --with-ldap-conf-file=/etc/ldap.conf \ ++++++ pwdutils-3.2.14.tar.bz2 -> pwdutils-3.2.16.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/ChangeLog new/pwdutils-3.2.16/ChangeLog --- old/pwdutils-3.2.14/ChangeLog 2011-02-01 17:26:43.000000000 +0100 +++ new/pwdutils-3.2.16/ChangeLog 2011-05-11 12:09:03.000000000 +0200 @@ -1,3 +1,22 @@ +2011-05-11 Thorsten Kukuk <[email protected]> + + * release 3.2.16 + + * etc/default/passwd: remove blowfish, make sha512 default + [FATE#312321]. + +2011-05-10 Thorsten Kukuk <[email protected]> + + * release 3.2.15 + + * src/newgrp.c (main): Try at first getgroups to honour + dynamically assigned groups (for example by pam_group) + [bnc#680833]. + +2011-02-02 Thorsten Kukuk <[email protected]> + + * etc/useradd.local: Merge SELinux patch. + 2011-02-01 Thorsten Kukuk <[email protected]> * release 3.2.14 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/configure new/pwdutils-3.2.16/configure --- old/pwdutils-3.2.14/configure 2011-02-01 17:28:17.000000000 +0100 +++ new/pwdutils-3.2.16/configure 2011-05-11 16:22:38.000000000 +0200 @@ -2431,7 +2431,7 @@ # Define the identity of the package. PACKAGE="pwdutils" - VERSION=3.2.14 + VERSION=3.2.16 cat >>confdefs.h <<_ACEOF diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/configure.in new/pwdutils-3.2.16/configure.in --- old/pwdutils-3.2.14/configure.in 2011-02-01 17:27:09.000000000 +0100 +++ new/pwdutils-3.2.16/configure.in 2011-05-11 16:12:26.000000000 +0200 @@ -4,7 +4,7 @@ dnl Author: Thorsten Kukuk <[email protected]> dnl AC_INIT(src/passwd.c) -AM_INIT_AUTOMAKE("pwdutils", 3.2.14) +AM_INIT_AUTOMAKE("pwdutils", 3.2.16) 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.14/etc/default/passwd new/pwdutils-3.2.16/etc/default/passwd --- old/pwdutils-3.2.14/etc/default/passwd 2009-04-22 14:15:44.000000000 +0200 +++ new/pwdutils-3.2.16/etc/default/passwd 2011-05-11 12:20:24.000000000 +0200 @@ -5,7 +5,7 @@ # Define default crypt hash. This hash will be # used, if there is no hash for a special service # the user is stored in. -# CRYPT={des,md5,blowfish,sha256,sha512} +# CRYPT={des,md5,sha256,sha512} CRYPT=md5 # Use another crypt hash for group passwords. @@ -18,11 +18,13 @@ # for local files, use a more secure hash. We # don't need to be portable here: -CRYPT_FILES=blowfish +CRYPT_FILES=sha512 # sometimes we need to specify special options for # a hash (variable is prepended by the name of the # crypt hash). -BLOWFISH_CRYPT_FILES=10 +# blowfish: 4-31 +# sha256/sha512: 1000-9999999 +#SHA512_CRYPT_FILES=1000 # For NIS, we should always use DES: CRYPT_YP=des diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/etc/useradd.local new/pwdutils-3.2.16/etc/useradd.local --- old/pwdutils-3.2.14/etc/useradd.local 2009-07-21 13:29:17.000000000 +0200 +++ new/pwdutils-3.2.16/etc/useradd.local 2011-02-02 11:02:32.000000000 +0100 @@ -12,7 +12,7 @@ --help|--version) echo Usage: $0 username [uid gid home] exit 0 - ;; + ;; esac # Check for the required argument. @@ -24,6 +24,20 @@ # Update NIS database # make -C /var/yp +# 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 && /usr/sbin/selinuxenabled ] ; then + test -x /sbin/restorecon || exit 2 + + if [ $# -lt 4 ]; then + home_dir=/home/$1 + else + home_dir=$4 + fi + + if [ -d $home_dir ]; then + /sbin/restorecon -R $home_dir + fi + # All done. exit 0 - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/NEWS new/pwdutils-3.2.16/NEWS --- old/pwdutils-3.2.14/NEWS 2011-02-01 17:27:52.000000000 +0100 +++ new/pwdutils-3.2.16/NEWS 2011-05-11 16:22:21.000000000 +0200 @@ -4,9 +4,15 @@ Please send bug reports, questions and suggestions to <[email protected]>. +Version 3.2.16 +* Make sha512 new default password hash + +Version 3.2.15 +* newgrp: honour dynamically assigned groups + Version 3.2.14 * pwck: check +/- entries, too -* grpck: check */- entries, too. +* grpck: check */- entries, too * login.defs: remove LOGIN_RETRIES Version 3.2.13 Files old/pwdutils-3.2.14/po/da.gmo and new/pwdutils-3.2.16/po/da.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/da.po new/pwdutils-3.2.16/po/da.po --- old/pwdutils-3.2.14/po/da.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/da.po 2011-05-10 16:46:47.000000000 +0200 @@ -32,7 +32,7 @@ msgstr "" "Project-Id-Version: pwdutils-3.2.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2010-07-06 00:00+0100\n" "Last-Translator: Joe Hansen <[email protected]>\n" "Language-Team: Danish <[email protected]>\n" @@ -1709,56 +1709,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: dårlig gruppe »%s«.\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "%s: Kunne ikke kalde op til getgrupper: %s\n" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "%s: Kunne ikke indhente gruppepost for %d.\n" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Adgangskode: " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "%s: Ugyldig adgangskode.\n" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "%s: Kunne ikke kalde op til getgrupper: %s\n" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "%s: For mange grupper, ikke tilføjet.\n" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "%s: Kunne ikke kalde op til setgrupper: %s\n" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "%s: Kunne ikke kalde op til setgid: %s\n" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "%s: Kunne ikke kalde op til initgrupper: %s\n" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "%s: Kunne ikke kalde op til setuid: %s\n" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "Kan ikke skifte til mappe %s: %s\n" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "%s: execl mislykkedes: %s\n" Files old/pwdutils-3.2.14/po/de.gmo and new/pwdutils-3.2.16/po/de.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/de.po new/pwdutils-3.2.16/po/de.po --- old/pwdutils-3.2.14/po/de.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/de.po 2011-05-10 16:46:47.000000000 +0200 @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: pwdutils 2.3.94\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2009-11-06 13:38+01:00\n" "Last-Translator: Thorsten Kukuk <[email protected]>\n" "Language-Team: none\n" @@ -1664,56 +1664,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: Ungültige Gruppe: \"%s\".\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Passwort: " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "" Files old/pwdutils-3.2.14/po/fr.gmo and new/pwdutils-3.2.16/po/fr.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/fr.po new/pwdutils-3.2.16/po/fr.po --- old/pwdutils-3.2.14/po/fr.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/fr.po 2011-05-10 16:46:47.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: pwdutils-3.2.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2010-08-01 09:54+0100\n" "Last-Translator: Nicolas Provost <[email protected]>\n" "Language-Team: French <[email protected]>\n" @@ -1728,56 +1728,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: groupe incorrect `%s'.\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "%s: échec de l'appel de getgroups: %s\n" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "%s: impossible de trouver l'entrée de groupe pour %d.\n" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Mot de passe: " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "%s: mot de passe incorrect.\n" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "%s: échec de l'appel de getgroups: %s\n" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "%s: trop de groupes, non ajouté.\n" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "%s: échec de l'appel de setgroups: %s\n" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "%s: échec de l'appel de setgid: %s\n" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "%s: échec de l'appel de initgroups: %s\n" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "%s: échec de l'appel de setuid: %s\n" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "Impossible d'entrer dans le répertoire %s: %s\n" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "%s: échec de l'appel de execl: %s\n" Files old/pwdutils-3.2.14/po/id.gmo and new/pwdutils-3.2.16/po/id.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/id.po new/pwdutils-3.2.16/po/id.po --- old/pwdutils-3.2.14/po/id.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/id.po 2011-05-10 16:46:47.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: pwdutils 3.2.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2010-07-07 22:45+0700\n" "Last-Translator: Arif E. Nugroho <[email protected]>\n" "Language-Team: Indonesian <[email protected]>\n" @@ -1700,56 +1700,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: grup `%s' buruk.\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "%s: panggilan ke getgroups gagal: %s\n" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "%s: gagal untuk memperoleh masukan grup untuk %d.\n" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Kata kunci: " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "%s: kata kunci tidak benar.\n" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "%s: panggilan ke getgroups gagal: %s\n" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "%s: terlalu banyak grup, tidak ditambahkan.\n" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "%s: panggilan ke setgroups gagal: %s\n" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "%s: panggilan ke setgid gagal: %s\n" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "%s: panggilan ke initgroups gagal: %s\n" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "%s: panggilan ke setuid gagal: %s\n" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "Tidak dapat pindah ke direktori %s: %s\n" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "%s: execl gagal: %s\n" Files old/pwdutils-3.2.14/po/nl.gmo and new/pwdutils-3.2.16/po/nl.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/nl.po new/pwdutils-3.2.16/po/nl.po --- old/pwdutils-3.2.14/po/nl.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/nl.po 2011-05-10 16:46:47.000000000 +0200 @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: pwdutils-3.2.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2010-07-06 10:49+0200\n" "Last-Translator: Benno Schulenberg <[email protected]>\n" "Language-Team: Dutch <[email protected]>\n" @@ -1696,56 +1696,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: Ongeldige groep '%s'.\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "%s: aanroepen van getgroups() is mislukt: %s\n" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "%s: Kan geen groepsitem voor %d verkrijgen.\n" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Wachtwoord: " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "%s: Wachtwoord is onjuist.\n" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "%s: aanroepen van getgroups() is mislukt: %s\n" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "%s: Te veel groepen; er is geen toegevoegd.\n" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "%s: aanroepen van setgroups() is mislukt: %s\n" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "%s: aanroepen van setgid() is mislukt: %s\n" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "%s: aanroepen van initgroups() is mislukt: %s\n" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "%s: aanroepen van setuid() is mislukt: %s\n" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "Kan niet naar map %s gaan: %s\n" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "%s: execl() is mislukt: %s\n" Files old/pwdutils-3.2.14/po/pl.gmo and new/pwdutils-3.2.16/po/pl.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/pl.po new/pwdutils-3.2.16/po/pl.po --- old/pwdutils-3.2.14/po/pl.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/pl.po 2011-05-10 16:46:48.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: pwdutils 3.2.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2010-07-07 08:00+0200\n" "Last-Translator: Jakub Bogusz <[email protected]>\n" "Language-Team: Polish <[email protected]>\n" @@ -1694,56 +1694,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: b��dna grupa `%s'.\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "%s: wywo�anie getgroups nie powiod�o si�: %s\n" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "%s: nie uda�o si� pobra� wpisu o grupie dla %d.\n" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Has�o: " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "%s: has�o niepoprawne.\n" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "%s: wywo�anie getgroups nie powiod�o si�: %s\n" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "%s: zbyt du�o grup, nie dodano.\n" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "%s: wywo�anie setgroups nie powiod�o si�: %s\n" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "%s: wywo�anie setgid nie powiod�o si�: %s\n" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "%s: wywo�anie initgroups nie powiod�o si�: %s\n" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "%s: wywo�anie setuid nie powiod�o si�: %s\n" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "Nie mo�na przej�� do katalogu %s: %s\n" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "%s: execl nie powiod�o si�: %s\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/pwdutils.pot new/pwdutils-3.2.16/po/pwdutils.pot --- old/pwdutils-3.2.14/po/pwdutils.pot 2011-02-02 10:59:26.000000000 +0100 +++ new/pwdutils-3.2.16/po/pwdutils.pot 2011-05-10 16:46:47.000000000 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" @@ -1635,56 +1635,56 @@ msgid "%s: bad group `%s'.\n" msgstr "" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "" -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "" Files old/pwdutils-3.2.14/po/sv.gmo and new/pwdutils-3.2.16/po/sv.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/sv.po new/pwdutils-3.2.16/po/sv.po --- old/pwdutils-3.2.14/po/sv.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/sv.po 2011-05-10 16:46:48.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: pwdutils 3.2.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2010-08-09 10:41+0100\n" "Last-Translator: Daniel Nylander <[email protected]>\n" "Language-Team: Swedish <[email protected]>\n" @@ -1688,56 +1688,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: felaktig grupp \"%s\".\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "%s: anrop av getgroups misslyckades: %s\n" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "%s: misslyckades med att få gruppost för %d.\n" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Lösenord: " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "%s: felaktigt lösenord.\n" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "%s: anrop av getgroups misslyckades: %s\n" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "%s: för många grupper, lades inte till.\n" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "%s: anrop av setgroups misslyckades: %s\n" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "%s: anrop av setgid misslyckades: %s\n" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "%s: anrop av initgroups misslyckades: %s\n" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "%s: anrop av setuid misslyckades: %s\n" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "Kan inte ändra till katalog %s: %s\n" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "%s: execl misslyckades: %s\n" Files old/pwdutils-3.2.14/po/vi.gmo and new/pwdutils-3.2.16/po/vi.gmo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/po/vi.po new/pwdutils-3.2.16/po/vi.po --- old/pwdutils-3.2.14/po/vi.po 2011-02-02 10:59:27.000000000 +0100 +++ new/pwdutils-3.2.16/po/vi.po 2011-05-10 16:46:48.000000000 +0200 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: pwdutils 3.2.10\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-02-02 10:59+0100\n" +"POT-Creation-Date: 2011-05-10 16:46+0200\n" "PO-Revision-Date: 2010-10-03 18:38+1030\n" "Last-Translator: Clytie Siddall <[email protected]>\n" "Language-Team: Vietnamese <[email protected]>\n" @@ -1732,56 +1732,56 @@ msgid "%s: bad group `%s'.\n" msgstr "%s: nhóm sai « %s ».\n" -#: src/newgrp.c:240 +#: src/newgrp.c:218 src/newgrp.c:313 +#, c-format +msgid "%s: calling getgroups failed: %s\n" +msgstr "%s: lỗi gọi « getgroups » (lấy các nhóm): %s\n" + +#: src/newgrp.c:271 #, c-format msgid "%s: failure to get group entry for %d.\n" msgstr "%s: lỗi lấy mục nhập nhóm đối với %d.\n" -#: src/newgrp.c:250 +#: src/newgrp.c:281 msgid "Password: " msgstr "Mật khẩu : " -#: src/newgrp.c:253 +#: src/newgrp.c:284 #, c-format msgid "%s: password incorrect.\n" msgstr "%s: mật khẩu không đúng.\n" -#: src/newgrp.c:282 -#, c-format -msgid "%s: calling getgroups failed: %s\n" -msgstr "%s: lỗi gọi « getgroups » (lấy các nhóm): %s\n" - -#: src/newgrp.c:320 +#: src/newgrp.c:351 #, c-format msgid "%s: too many groups, not added.\n" msgstr "%s: quá nhiều nhóm, chưa thêm.\n" -#: src/newgrp.c:327 +#: src/newgrp.c:358 #, c-format msgid "%s: calling setgroups failed: %s\n" msgstr "%s: lỗi gọi « setgroups » (đặt các nhóm): %s\n" -#: src/newgrp.c:334 src/newgrp.c:349 +#: src/newgrp.c:365 src/newgrp.c:380 #, c-format msgid "%s: calling setgid failed: %s\n" msgstr "%s: lỗi gọi « setgid » (đặt mã số nhóm): %s\n" -#: src/newgrp.c:343 +#: src/newgrp.c:374 #, c-format msgid "%s: calling initgroups failed: %s\n" msgstr "%s: lỗi gọi « initgroups » (sơ khởi các nhóm): %s\n" -#: src/newgrp.c:358 +#: src/newgrp.c:389 #, c-format msgid "%s: calling setuid failed: %s\n" msgstr "%s: lỗi gọi « setuid » (đặt mã số người dùng): %s\n" -#: src/newgrp.c:370 +#: src/newgrp.c:401 #, c-format msgid "Cannot change to directory %s: %s\n" msgstr "Không thể chuyển đổi sang thư mục %s: %s\n" -#: src/newgrp.c:408 +#: src/newgrp.c:439 #, c-format msgid "%s: execl failed: %s\n" msgstr "%s: execl bị lỗi: %s\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pwdutils-3.2.14/src/newgrp.c new/pwdutils-3.2.16/src/newgrp.c --- old/pwdutils-3.2.14/src/newgrp.c 2006-11-29 18:21:40.000000000 +0100 +++ new/pwdutils-3.2.16/src/newgrp.c 2011-05-10 16:38:25.000000000 +0200 @@ -201,7 +201,38 @@ if (grp->gr_gid == pw->pw_gid) /* primary group. */ is_member = 1; else - { + { + /* check with getgroup() if were member already */ + gid_t *groupIDs; + int count; + + if ((count = getgroups(0,0)) == -1) + count = ngroups_max; + if ((groupIDs = (gid_t*) malloc(count * sizeof(gid_t))) == NULL) + { + fputs ("running out of memory!\n", stderr); + return E_FAILURE; + } + if ((count = getgroups(count, groupIDs)) < 0) + { + fprintf (stderr, _("%s: calling getgroups failed: %s\n"), + program, strerror (errno)); + return E_FAILURE; + } + for (i = 0; i < count; i++ ) + { + if (grp->gr_gid == groupIDs[i]) + { + is_member = 1; + break; + } + } + free(groupIDs); + } + + /* check in databases if not already found */ + if (!is_member) + { struct group *g; char **gp; gid_t search_gid; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
