X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib.c;h=e5200c917ddcd299bf7f183ecab2b825ca208f56;hp=56d78b50c2685b125bc2b42b2609ae056b5cb9df;hb=e96efa56257b45e9c3d1fb1b30071c57512cfe28;hpb=1d7238dc43311c4545883dc1151bf5b142d88c0b diff --git a/lib.c b/lib.c index 56d78b5..e5200c9 100644 --- a/lib.c +++ b/lib.c @@ -363,7 +363,8 @@ int safe_open (const char *path, int flags) struct stat osb, nsb; int fd; - if ((fd = open (path, flags, 0600)) < 0) + umask(Umask); + if ((fd = open (path, flags, 0666)) < 0) return fd; /* make sure the file is not symlink */