summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-04 17:23:03 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-04 17:23:03 -0800
commit89fcd9132d08d6c7064b5054280556fb281bc560 (patch)
tree5d8bca599280a7b6397a81033204904008b0f60d
parent249d0d3e262aca9e28b69b3832575ef26182126c (diff)
downloadexpect-89fcd9132d08d6c7064b5054280556fb281bc560.tar.gz
expect-89fcd9132d08d6c7064b5054280556fb281bc560.tar.bz2
expect-89fcd9132d08d6c7064b5054280556fb281bc560.zip
fix log
-rw-r--r--exp_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exp_log.c b/exp_log.c
index b378641..171964a 100644
--- a/exp_log.c
+++ b/exp_log.c
@@ -374,7 +374,7 @@ expDiagChannelOpen(interp,filename)
Tcl_DStringAppend(&tsdPtr->diagFilename,filename,-1);
}
- tsdPtr->diagChannel = Tcl_OpenFileChannel(interp,newfilename,"a",0777);
+ tsdPtr->diagChannel = Tcl_OpenFileChannel(interp,newfilename,"a",0666);
if (!tsdPtr->diagChannel) {
Tcl_DStringFree(&tsdPtr->diagFilename);
return TCL_ERROR;
@@ -499,7 +499,7 @@ expLogChannelOpen(interp,filename,append)
Tcl_DStringAppend(&tsdPtr->logFilename,filename,-1);
}
- tsdPtr->logChannel = Tcl_OpenFileChannel(interp,newfilename,mode,0777);
+ tsdPtr->logChannel = Tcl_OpenFileChannel(interp,newfilename,mode,0666);
if (!tsdPtr->logChannel) {
Tcl_DStringFree(&tsdPtr->logFilename);
return TCL_ERROR;