--- tgif-QPL-4.1.45/file.c.opmode 2006-06-14 07:29:57.000000000 +0900
+++ tgif-QPL-4.1.45/file.c 2007-08-22 12:37:19.000000000 +0900
@@ -257,7 +257,7 @@
if (!mkstemp_succes) {
#ifdef O_EXCL
- int fd=open(buf, O_CREAT|O_EXCL|O_WRONLY);
+ int fd=open(buf, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
if (fd == -1) {
/* barf loudly that someone is trying to hack the box */
--- tgif-QPL-4.1.45/util.c.opmode 2006-06-14 07:30:00.000000000 +0900
+++ tgif-QPL-4.1.45/util.c 2007-08-22 12:37:39.000000000 +0900
@@ -617,7 +617,7 @@
mktemp(buf);
#ifdef O_EXCL
fd_used = TRUE;
- fd = open(buf, O_CREAT|O_EXCL|O_WRONLY);
+ fd = open(buf, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR);
#endif /* O_EXCL */
#else /* _DONT_USE_MKTEMP */
sprintf(buf, "%s%sXXXXXX", pszDir, pszPrefix);