--- main.c +++ main.c @@ -562,11 +562,11 @@ dup2(fd, 0); close(fd); - fd = open("_opd_msgs.txt", O_RDWR | O_CREAT); + fd = open("_opd_msgs.txt", O_RDWR | O_CREAT, 0600); dup2(fd, 1); close(fd); - fd = open("_opd_errs.txt", O_RDWR | O_CREAT); + fd = open("_opd_errs.txt", O_RDWR | O_CREAT, 0600); dup2(fd, 2); close(fd);