trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject trafficserver git commit: TS-3195: add missing O_CREAT for crash log
Date Fri, 14 Nov 2014 05:19:06 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 22c16fa4d -> e9f057f45


TS-3195: add missing O_CREAT for crash log


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/e9f057f4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/e9f057f4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/e9f057f4

Branch: refs/heads/master
Commit: e9f057f45c1831018f60dc46997e7db9405c45d6
Parents: 22c16fa
Author: James Peach <jpeach@apache.org>
Authored: Thu Nov 13 21:15:19 2014 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Thu Nov 13 21:15:19 2014 -0800

----------------------------------------------------------------------
 cmd/traffic_crashlog/traffic_crashlog.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e9f057f4/cmd/traffic_crashlog/traffic_crashlog.cc
----------------------------------------------------------------------
diff --git a/cmd/traffic_crashlog/traffic_crashlog.cc b/cmd/traffic_crashlog/traffic_crashlog.cc
index 5b43886..f41bbaa 100644
--- a/cmd/traffic_crashlog/traffic_crashlog.cc
+++ b/cmd/traffic_crashlog/traffic_crashlog.cc
@@ -78,7 +78,7 @@ crashlog_open(const char * path)
 {
   int fd;
 
-  fd = open(path, O_WRONLY | O_TRUNC, 0400);
+  fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, 0400);
   return (fd == -1) ? NULL : fdopen(fd, "w");
 }
 


Mime
View raw message