]> arthur.barton.de Git - netatalk.git/blobdiff - etc/papd/uam.c
fixed DISABLE_SHELLCHECK support in afpd and papd (Jason Keltz <jas@cs.yorku.ca>)
[netatalk.git] / etc / papd / uam.c
index c332685e9be810454bf4ebd888417849786d7e12..f99a847d518e1e4a2b4384aa37230ef4b991a18a 100644 (file)
@@ -217,10 +217,12 @@ int uam_checkuser(const struct passwd *pwd)
   }
   endusershell();
 
+#ifndef DISABLE_SHELLCHECK
   if (!p) {
     syslog( LOG_INFO, "illegal shell %s for %s",pwd->pw_shell,pwd->pw_name);
     return -1;
   }
+#endif /* DISABLE_SHELLCHECK */
 
   return 0;
 }