Comment 4 for bug 584942

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hi Ramzi, I'm going over this very old libnfsidmap bug now.

Do you know under what situation this part of your suggested patch is needed?
@@ -276,7 +276,7 @@
   return -EINVAL;

  /* get princ's realm */
- princ_realm = strstr(princ, "@");
+ princ_realm = strrchr(princ, '@');
  if (princ_realm == NULL)
   return -EINVAL;
  princ_realm++;

Or is it just a precaution?