Index: libnfsidmap-0.25/nss.c =================================================================== --- libnfsidmap-0.25.orig/nss.c +++ libnfsidmap-0.25/nss.c @@ -135,7 +135,7 @@ static char *strip_domain(const char *na char *l = NULL; int len; - c = strchr(name, '@'); + c = strrchr(name, '@'); if (c == NULL && domain != NULL) goto out; if (c == NULL && domain == NULL) { @@ -276,7 +276,7 @@ static int nss_gss_princ_to_ids(char *se return -EINVAL; /* get princ's realm */ - princ_realm = strstr(princ, "@"); + princ_realm = strrchr(princ, "@"); if (princ_realm == NULL) return -EINVAL; princ_realm++;