--- pine/osdep/os-lnx.h-orig 2003-04-23 12:48:08.000000000 +0200
+++ pine/osdep/os-lnx.h 2003-04-23 12:51:59.000000000 +0200
@@ -74,7 +74,7 @@
default-composer-hdrs or customized-hdrs to get at it. Instead of
defining NEVER_ALLOW_CHANGING_FROM, an easier way of preventing From
changing is to put the feature "no-allow-changing-from" in the
- /usr/local/lib/pine.conf.fixed file.
+ /etc/pine.conf.fixed file.
----*/
/* #define NEVER_ALLOW_CHANGING_FROM */
@@ -163,10 +163,10 @@
/*----- System-wide config file ----------------------------------------*/
#ifndef SYSTEM_PINERC
-#define SYSTEM_PINERC "/usr/local/lib/pine.conf"
+#define SYSTEM_PINERC "/etc/pine.conf"
#endif
#ifndef SYSTEM_PINERC_FIXED
-#define SYSTEM_PINERC_FIXED "/usr/local/lib/pine.conf.fixed"
+#define SYSTEM_PINERC_FIXED "/etc/pine.conf.fixed"
#endif
--- imap/src/osdep/unix/Makefile-orig 2003-04-23 13:02:13.000000000 +0200
+++ imap/src/osdep/unix/Makefile 2003-04-23 13:03:07.000000000 +0200
@@ -636,7 +636,7 @@
SPOOLDIR=/var/spool \
ACTIVEFILE=/var/lib/news/active \
RSHPATH=/usr/bin/rsh \
- BASECFLAGS="-g -fno-omit-frame-pointer $(GCCOPTLEVEL)" \
+ BASECFLAGS="-fno-omit-frame-pointer $(GCCOPTLEVEL)" \
BASELDFLAGS="-lcrypt"
sl4: # Secure Linux using libc4
--- doc/tech-notes/config-notes.html-orig 2003-04-23 13:04:42.000000000 +0200
+++ doc/tech-notes/config-notes.html 2003-04-23 13:06:37.000000000 +0200
@@ -952,10 +952,10 @@
The fixed configuration file is normally
-/usr/local/lib/pine.conf.fixed.
+/etc/pine.conf.fixed.
The system-wide configuration file is normally
-/usr/local/lib/pine.conf for Unix Pine and is normally not
+/etc/pine.conf for Unix Pine and is normally not
set for PC-Pine.
For PC-Pine, if the environment variable $PINECONF is set, that
is used for the system-wide configuration.
@@ -1273,8 +1273,8 @@
An entry in /etc/inetd.conf for the alternate service.
- An entry in /usr/local/lib/pine.conf,
-/usr/local/lib/pine.conf.fixed or ~/.pinerc.
+ An entry in /etc/pine.conf,
+/etc/pine.conf.fixed or ~/.pinerc.
@@ -1285,7 +1285,7 @@
Pine's MIME-TYPE support is based on code contributed by Hans Drexler
<drexler@mpi.nl>. Pine assigns MIME Content-Types according
to file name extensions found in the system-wide files
-/usr/local/lib/mime.types and /etc/mime.types,
+/etc/mime.types and /etc/mime.types,
and a user specific ~/.mime.types file.
In DOS and OS/2,
--- doc/tech-notes/installation.html-orig 2003-04-23 14:27:06.000000000 +0200
+++ doc/tech-notes/installation.html 2003-04-23 14:29:54.000000000 +0200
@@ -218,7 +218,7 @@
The name of the file which holds Pine
configuration information for
all users on the system. Default on UNIX systems is
-/usr/local/lib/pine.conf.
+/etc/pine.conf.
SYSTEM_PINERC_FIXED
@@ -226,7 +226,7 @@
SYSTEM_PINERC, but only for variables that the administrator wants to keep
fixed. That is, users are not allowed to change variables that are
specified in the FIXED file. Default on UNIX systems is
-/usr/local/lib/pine.conf.fixed.
+/etc/pine.conf.fixed.
@@ -529,9 +529,9 @@
are no required auxiliary files.
There are, however, three optional auxiliary files:
-/usr/local/lib/pine.info,
-/usr/local/lib/pine.conf, and
-/usr/local/lib/pine.conf.fixed. The file
+/etc/pine.info,
+/etc/pine.conf, and
+/etc/pine.conf.fixed. The file
pine.info contains text on how to get further help on the
local system. It is part of the help text for the
main menu and should probably refer to the local help desk or the system
@@ -650,15 +650,15 @@
-- /usr/local/lib/pine.conf
+
- /etc/pine.conf
- Pine's global configuration file.
-
- /usr/local/lib/pine.conf.fixed
+
- /etc/pine.conf.fixed
- Non-overridable global configuration file.
-
- /usr/local/lib/pine.info
+
- /etc/pine.info
- Local pointer to system administrator.
--- doc/pine.1-orig 2003-04-23 14:32:22.000000000 +0200
+++ doc/pine.1 2003-04-23 14:32:54.000000000 +0200
@@ -333,11 +333,11 @@
.br
/etc/mime.types System-wide file ext. to MIME type mapping
.br
-/usr/local/lib/pine.info Local pointer to system administrator.
+/etc/pine.info Local pointer to system administrator.
.br
-/usr/local/lib/pine.conf System-wide configuration file.
+/etc/pine.conf System-wide configuration file.
.br
-/usr/local/lib/pine.conf.fixed Non-overridable configuration file.
+/etc/pine.conf.fixed Non-overridable configuration file.
.br
/tmp/.\\usr\\spool\\mail\\xxxx Per-folder mailbox lock files.
.br
--- pine/reply.c-orig 2003-04-23 14:57:00.000000000 +0200
+++ pine/reply.c 2003-04-23 15:04:21.000000000 +0200
@@ -5456,8 +5456,8 @@
if(!hostpart)
hostpart = cpystr("huh");
- sprintf(id,"",
- SYSTYPE, pine_version, (now_x->tm_year) % 100, now_x->tm_mon + 1,
+ sprintf(id,"<%04d%02d%02d%02d%02d%02d%X.%d@%.50s>",
+ now_x->tm_year, now_x->tm_mon + 1,
now_x->tm_mday, now_x->tm_hour, now_x->tm_min, now_x->tm_sec,
cnt, getpid(), hostpart);
--- pine/init.c-orig 2003-04-23 14:34:50.000000000 +0200
+++ pine/init.c 2003-04-23 15:59:08.000000000 +0200
@@ -428,7 +428,7 @@
/*----------------------------------------------------------------------
These are the variables that control a number of pine functions. They
-come out of the .pinerc and the /usr/local/lib/pine.conf files. Some can
+come out of the .pinerc and the /etc/pine.conf files. Some can
be set by the user while in Pine. Eventually all the local ones should
be so and maybe the global ones too.
@@ -2669,6 +2669,8 @@
F_ENABLE_INCOMING, h_config_enable_incoming, PREF_FLDR},
{"enable-lame-list-mode",
F_FIX_BROKEN_LIST, h_config_lame_list_mode, PREF_FLDR},
+ {"enable-lock-world-writable",
+ F_ENABLE_LOCK_0666, h_config_lock_0666, PREF_FLDR},
{"expanded-view-of-folders",
F_EXPANDED_FOLDERS, h_config_expanded_folders, PREF_FLDR},
{"quell-empty-directories",
@@ -3149,6 +3151,12 @@
mail_parameters(NULL, SET_LOCKEACCESERROR, (void *) 0);
/*
+ * Turn off pine lock world writability...
+ */
+ if(F_OFF(F_ENABLE_LOCK_0666, ps))
+ mail_parameters(NULL, SET_LOCKPROTECTION, (void *) 0600);
+
+ /*
* Turn on quelling of pseudo message.
*/
if(F_ON(F_QUELL_INTERNAL_MSG,ps_global))
--- pine/other.c-orig 2003-04-23 16:01:51.000000000 +0200
+++ pine/other.c 2003-04-23 16:03:32.000000000 +0200
@@ -11943,6 +11943,11 @@
(void *)(F_ON(f->id, ps) ? 1 : 0));
break;
+ case F_ENABLE_LOCK_0666 :
+ q_status_message(SM_ORDER | SM_DING, 3, 4,
+ "Lock mode changes will take effect your next pine session.");
+ break;
+
case F_QUELL_INTERNAL_MSG :
mail_parameters(NULL,SET_USERHASNOLIFE,
(void *)(F_ON(f->id, ps) ? 1 : 0));
--- pine/pine.hlp-orig 2003-04-23 14:37:36.000000000 +0200
+++ pine/pine.hlp 2003-04-23 16:11:31.000000000 +0200
@@ -1307,7 +1307,9 @@
Pine?
No. Pine also creates lockfiles in the /tmp directory. For normal Unix
mailbox format folders, these are used to coordinate access between
-multiple Pine sessions.
+multiple Pine sessions. Their protection mode by default is 0600. You
+may change it to 0666 turning on the
+enable-lock-world-writable feature.
- What about the
"quell-lock-failure-warnings" feature added in Pine 4.01?
@@ -20127,6 +20129,39 @@
<End of help on this topic>