summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-19 01:20:14 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-19 01:20:14 -0700
commit3c2390c461f15386a8e2676572c520f01e9c600f (patch)
treeb5efaa2add173f18035610b62803ae8bcf8b1979 /os
parent346a316f5e39ca6d99b98372914294988e79758d (diff)
xfs shouldn't re-create the log file every time it clones
Port to current xfs of a part of the fix for Sun bug 4302139: patch 108117-01 removes error-file configuration option for xfs Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'os')
-rw-r--r--os/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/error.c b/os/error.c
index bf11364..438a3e3 100644
--- a/os/error.c
+++ b/os/error.c
@@ -92,7 +92,7 @@ InitErrors(void)
#endif
if (ErrorFile[0] && strcmp(CurrentErrorFile, ErrorFile) != 0) {
- i = creat(ErrorFile, 0666);
+ i = open(ErrorFile, O_WRONLY | O_APPEND | O_CREAT, 0666);
if (i != -1) {
dup2(i, 2);
close(i);