]> git.marmaro.de Git - mmh/commitdiff
Modify umask set by mhshow to enable user execute bit, so that viewers that
authorRuud de Rooij <ruud@ruud.org>
Mon, 7 Aug 2000 18:42:20 +0000 (18:42 +0000)
committerRuud de Rooij <ruud@ruud.org>
Mon, 7 Aug 2000 18:42:20 +0000 (18:42 +0000)
create temporary directories (e.g., lynx) will be able to access them.

ChangeLog
configure
uip/mhshowsbr.c

index f6b89bdf2c4805b5b9cd1bcbb294b1f720159da6..5e26bb106d5593966d69ddc96efce62e79ddac4a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Aug  7 20:11:09 CEST 2000 Ruud de Rooij <ruud@ruud.org>
+
+       * 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 <dan-nmh@dilvish.speed.net>
 
        * TODO: Allow multiple simultaneous differing contexts, probably
index 64d0324f68f5832398ddb9cb73f52d73ad4bd7a1..bbdb686e96b9088abeeca1ca62a20252b26ee2fa 100755 (executable)
--- 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;
index d8733953acfc90a32fe162c8237ea2de03f5db09..eb6910019736efdc70a6b227eb810ace0da9b03c 100644 (file)
@@ -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