From d4e112ae5fad828f33e3a44de40c6e5db7db51ad Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Fri, 6 Jan 2012 14:18:46 -0500 Subject: [PATCH] Hardcode the defaults for Msg-Protect and Folder-Protect. Also fix the documentation (had the wrong value for the default for Msg-Protect). --- acconfig.h | 6 ------ config/config.c | 4 ++-- man/mh-profile.man | 6 +++--- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/acconfig.h b/acconfig.h index 3961a30..1894504 100644 --- a/acconfig.h +++ b/acconfig.h @@ -26,12 +26,6 @@ /* #define REALLYDUMB 1 */ /* - * Define the default creation modes for folders and messages. - */ -#define DEFAULT_FOLDER_MODE "700" -#define DEFAULT_MESSAGE_MODE "600" - -/* * Name of link to file to which you are replying. */ #define LINK "@" diff --git a/config/config.c b/config/config.c index a4edc46..82d20b1 100644 --- a/config/config.c +++ b/config/config.c @@ -346,7 +346,7 @@ char *AliasFile = nmhetcdir (/MailAliases); * Folders (directories) are created with this protection (mode) */ -char *foldprot = DEFAULT_FOLDER_MODE; +char *foldprot = "700"; /* * Every NEW message will be created with this protection. When a @@ -354,5 +354,5 @@ char *foldprot = DEFAULT_FOLDER_MODE; * to messages coming in through inc. */ -char *msgprot = DEFAULT_MESSAGE_MODE; +char *msgprot = "600"; diff --git a/man/mh-profile.man b/man/mh-profile.man index f8ae608..4299a30 100644 --- a/man/mh-profile.man +++ b/man/mh-profile.man @@ -154,17 +154,17 @@ composition draft before it is sent. .RE .PP .BR Msg\-Protect : -644 +600 .RS 5 An octal number which defines the permission bits for new message files. See .BR chmod (1) for an explanation of the octal number. -(profile, default: 0644) +(profile, default: 0600) .RE .PP .BR Folder\-Protect : -750 +700 .RS 5 An octal number which defines the permission bits for new folder directories. See -- 1.7.10.4