Blame SOURCES/libnfsidmap-0.25-strrchr.patch

da1e07
commit 309a89975a50bf53c408233a1bb5b10fd579ca30
da1e07
Author: Signed-off-by: Shijoe Panjikkaran <spanjikk@redhat.com>
da1e07
Date:   Wed Apr 30 13:19:34 2014 -0400
da1e07
da1e07
    nss: use strrchr() instead of strchr() to get the last occurrence of "@"
da1e07
    
da1e07
    Signed-off-by: Shijoe Panjikkaran <spanjikk@redhat.com>
da1e07
    Signed-off-by: Steve Dickson <steved@redhat.com>
da1e07
da1e07
diff --git a/nss.c b/nss.c
da1e07
index b2b1227..f8129fe 100644
da1e07
--- a/nss.c
da1e07
+++ b/nss.c
da1e07
@@ -135,7 +135,7 @@ static char *strip_domain(const char *name, const char *domain)
da1e07
 	char *l = NULL;
da1e07
 	int len;
da1e07
 
da1e07
-	c = strchr(name, '@');
da1e07
+	c = strrchr(name, '@');
da1e07
 	if (c == NULL && domain != NULL)
da1e07
 		goto out;
da1e07
 	if (c == NULL && domain == NULL) {