summarylogtreecommitdiffstats
path: root/rootsh-1.5.3-open-needs-3-args.patch
blob: 63bf25636ffcb892b5b4bb8340ed449c9d702b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -up rootsh-1.5.3/src/rootsh.c.BAD rootsh-1.5.3/src/rootsh.c
--- rootsh-1.5.3/src/rootsh.c.BAD	2008-05-14 16:38:30.000000000 -0400
+++ rootsh-1.5.3/src/rootsh.c	2008-05-14 16:38:37.000000000 -0400
@@ -680,7 +680,7 @@ int beginlogging(void) {
     //  Open the logfile 
     */
     if ((logFile = open(logFileName, O_RDWR|O_CREAT|O_SYNC|O_CREAT|O_APPEND|
-        S_IRUSR|S_IWUSR)) == -1) {
+        S_IRUSR|S_IWUSR, 0777)) == -1) {
       perror(logFileName);
       return(0);
     }