projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Andreas Krennmair:
[apps/madmutt.git]
/
lib.c
diff --git
a/lib.c
b/lib.c
index
56d78b5
..
e5200c9
100644
(file)
--- 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 */