22 lines
655 B
Plaintext
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)
|