Files
shadow/debian/patches/454_userdel_no_MAIL_FILE
T
2008-01-12 13:17:04 +00:00

22 lines
655 B
Plaintext

Goal: do not use MAIL_FILE in userdel:
When MAIL_FILE is used, the mail spool is in the home directory, so
it do not need to be removed (in addition to the user's home
directory)
Note: usermod should be checked also. Maybe MAIL_FILE can be removed from
login.defs
Index: shadow-4.1.0/src/userdel.c
===================================================================
--- shadow-4.1.0.orig/src/userdel.c
+++ shadow-4.1.0/src/userdel.c
@@ -566,7 +566,7 @@
maildir = getdef_str ("MAIL_DIR");
#ifdef MAIL_SPOOL_DIR
- if (!maildir && !getdef_str ("MAIL_FILE"))
+ if (!maildir)
maildir = MAIL_SPOOL_DIR;
#endif
if (!maildir)