]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/auth.c
Ensure our umask is not altered by eg pam_umask
[netatalk.git] / etc / afpd / auth.c
index 5220493e09d00632285a63a9fba1c413148ee76f..40d3a5ac906b7e56a1de886dedd3f52a70f68546 100644 (file)
@@ -412,6 +412,9 @@ static int login(AFPObj *obj, struct passwd *pwd, void (*logout)(void), int expi
     save_uidgid ( &obj->uidgid );
 #endif
 
+    /* pam_umask or similar might have changed our umask */
+    (void)umask(obj->options.umask);
+
     return( AFP_OK );
 }