Hello community,

here is the log from the commit of package nfsidmap for openSUSE:Factory 
checked in at 2018-08-28 09:19:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nfsidmap (Old)
 and      /work/SRC/openSUSE:Factory/.nfsidmap.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nfsidmap"

Tue Aug 28 09:19:15 2018 rev:38 rq:629458 version:0.27

Changes:
--------
--- /work/SRC/openSUSE:Factory/nfsidmap/nfsidmap.changes        2018-07-18 
22:36:12.762486448 +0200
+++ /work/SRC/openSUSE:Factory/.nfsidmap.new/nfsidmap.changes   2018-08-28 
09:19:19.855864121 +0200
@@ -1,0 +2,6 @@
+Tue Aug  7 23:44:43 UTC 2018 - [email protected]
+
+- 0002-nss_gss_princ_to_ids-and-nss_gss_princ_to_grouplist-.patch
+ upstream patch to fix small bug (bsc#1098217)
+
+-------------------------------------------------------------------

New:
----
  0002-nss_gss_princ_to_ids-and-nss_gss_princ_to_grouplist-.patch

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

Other differences:
------------------
++++++ nfsidmap.spec ++++++
--- /var/tmp/diff_new_pack.YOdtro/_old  2018-08-28 09:19:20.351865698 +0200
+++ /var/tmp/diff_new_pack.YOdtro/_new  2018-08-28 09:19:20.351865698 +0200
@@ -27,6 +27,7 @@
 Source1:        nfsv4.schema
 Patch0:         fix-prototype.patch
 Patch1:         libnfsidmap-export-symbols.patch
+Patch3:         0002-nss_gss_princ_to_ids-and-nss_gss_princ_to_grouplist-.patch
 BuildRequires:  libtool
 BuildRequires:  openldap2-devel
 BuildRequires:  pkgconfig
@@ -51,6 +52,7 @@
 %setup -q -n libnfsidmap-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch3 -p1
 cp %{SOURCE1} .
 
 %build

++++++ 0002-nss_gss_princ_to_ids-and-nss_gss_princ_to_grouplist-.patch ++++++
>From ba7daebba65dc4b1adfac9c8c61f373d6c394673 Mon Sep 17 00:00:00 2001
From: Scott Mayhew <[email protected]>
Date: Wed, 8 Feb 2017 08:40:38 -0500
Subject: [PATCH] nss_gss_princ_to_ids() and nss_gss_princ_to_grouplist() must
 strip the realm

nss_gss_princ_to_ids() and nss_gss_princ_to_grouplist() were hard-coded
to call nss_getpwnam with the 'dostrip' arg set to 0, which is the
opposite of what they should have had.  Note: there's no point making
the decision to strip or not to strip configurable in these two
functions.  Ideally both of these functions should be taking a
gss_name_t instead of a char * for the principal, calling
gss_localname() on that, and passing the result to nss_getpwnam... but
that would require changes in both rpc.svcgssd and libgssglue (both of
which have been deprecated for a while).

Fixes: 4db1bb1 (libnfsidmap: add options to aid id mapping in multi
domain environments)
Signed-off-by: Scott Mayhew <[email protected]>
Signed-off-by: Steve Dickson <[email protected]>
---
 nss.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nss.c b/nss.c
index 67e657a0314a..82799ce94d04 100644
--- a/nss.c
+++ b/nss.c
@@ -415,7 +415,7 @@ static int nss_gss_princ_to_ids(char *secname, char *princ,
                return -ENOENT;
        }
        /* XXX: this should call something like getgssauthnam instead? */
-       pw = nss_getpwnam(princ, NULL, &err, 0);
+       pw = nss_getpwnam(princ, NULL, &err, 1);
        if (pw == NULL) {
                err = -ENOENT;
                goto out;
@@ -438,7 +438,7 @@ int nss_gss_princ_to_grouplist(char *secname, char *princ,
                goto out;
        /* XXX: not quite right?  Need to know default realm? */
        /* XXX: this should call something like getgssauthnam instead? */
-       pw = nss_getpwnam(princ, NULL, &ret, 0);
+       pw = nss_getpwnam(princ, NULL, &ret, 1);
        if (pw == NULL) {
                ret = -ENOENT;
                goto out;
-- 
2.14.0.rc0.dirty


Reply via email to