]> arthur.barton.de Git - netatalk.git/commitdiff
Minor bug fix. Some UAMs don't give logging control back to afpd when they're
authoritlm019 <itlm019>
Thu, 14 Sep 2000 20:58:28 +0000 (20:58 +0000)
committeritlm019 <itlm019>
Thu, 14 Sep 2000 20:58:28 +0000 (20:58 +0000)
done (including PAM).  Not a problem unless you're trying to log afpd logins
somewhere else.

etc/afpd/auth.c

index 0a8afbe76ebff34d2959e6d2668a6d245d0401e7..ce802a99dafbf6b507a4bc9983d28f17f1c8836b 100644 (file)
@@ -149,6 +149,9 @@ static int login(AFPObj *obj, struct passwd *pwd, void (*logout)(void))
     struct afp_options *options = &obj->options;
 #endif ADMIN_GRP
 
+    /* UAM had syslog control; afpd needs to reassert itself */
+    openlog( "afpd", LOG_NDELAY|LOG_PID, LOG_DAEMON);
+
     if ( pwd->pw_uid == 0 ) {  /* don't allow root login */
        syslog( LOG_ERR, "login: root login denied!" );
        return AFPERR_NOTAUTH;