From 0f540a390a62d9732f61fdb21f82048093a3d63d Mon Sep 17 00:00:00 2001 From: Ruud de Rooij Date: Mon, 7 Aug 2000 18:42:20 +0000 Subject: [PATCH] Modify umask set by mhshow to enable user execute bit, so that viewers that create temporary directories (e.g., lynx) will be able to access them. --- ChangeLog | 6 ++++++ configure | 2 +- uip/mhshowsbr.c | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f6b89bd..5e26bb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Aug 7 20:11:09 CEST 2000 Ruud de Rooij + + * Modify umask set by mhshow to enable user execute bit, so that + viewers that create temporary directories (e.g., lynx) will be + able to access them. + Thu Aug 03 17:14:08 2000 Dan Harkless * TODO: Allow multiple simultaneous differing contexts, probably diff --git a/configure b/configure index 64d0324..bbdb686 100755 --- a/configure +++ b/configure @@ -1104,7 +1104,7 @@ else int main() { /* Ultrix mips cc rejects this. */ -typedef int charset[2]; const charset x; +typedef int charset[2]; const charset x = {0,0}; /* SunOS 4.1.1 cc rejects this. */ char const *const *ccp; char **p; diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index d873395..eb69100 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -136,7 +136,9 @@ show_single_message (CT ct, char *form) union wait status; #endif - umask (ct->c_umask); + /* Allow user executable bit so that temporary directories created by + * the viewer (e.g., lynx) are going to be accessible */ + umask (ct->c_umask & ~(0100)); /* * If you have a format file, then display -- 1.7.10.4