Bug 4219 - joe leaves DEADJOE world-readable
Summary: joe leaves DEADJOE world-readable
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: joe
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
URL: http://www.securityfocus.com/template...
Keywords: Security
Depends On:
TreeView+ depends on / blocked
Reported: 1999-07-27 12:20 UTC by Louis Mandelstam
Modified: 2008-05-01 15:37 UTC (History)
0 users

Clone Of:
Last Closed: 1999-09-02 16:11:55 UTC

Attachments (Terms of Use)

Description Louis Mandelstam 1999-07-27 12:20:08 UTC
This was reported on BUGTRAQ on Jul 17 1999.  Please see
quoted URL for an archived copy of the original BUGTRAQ

Patch offered in the post (I haven't tested it): (a bit
broken by the web form)

--- b.c.orig    Fri Jan 20 00:38:25 1995
+++ b.c Sat Jul 17 01:54:09 1999
@@ -21,6 +21,7 @@
 #include <pwd.h>
 #include <errno.h>
+#include <sys/types.h>

 #include "config.h"
 #include "blocks.h"
@@ -1990,6 +1991,7 @@
  long tim=time(0);
  B *b;
+ mode_t mask=umask (077); /* no access to DEADJOE for
others */
  FILE *f=fopen("DEADJOE","a");
  fprintf(f,"\n*** Modified files in JOE when it aborted on
  if(sig) fprintf(f,"*** JOE was aborted by signal

Comment 1 Jeff Johnson 1999-09-02 16:11:59 UTC
Fiexed in joe-2.8-21.

Note You need to log in before you can comment on or make changes to this bug.