aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c
index feee31dee..f218a88d5 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11815,10 +11815,8 @@ opentrace() {
11815#else 11815#else
11816 strcpy(s, "./trace"); 11816 strcpy(s, "./trace");
11817#endif /* not_this_way */ 11817#endif /* not_this_way */
11818 if ((tracefile = fopen(s, "a")) == NULL) { 11818 if ((tracefile = wfopen(s, "a")) == NULL)
11819 fprintf(stderr, "Can't open %s\n", s);
11820 return; 11819 return;
11821 }
11822#ifdef O_APPEND 11820#ifdef O_APPEND
11823 if ((flags = fcntl(fileno(tracefile), F_GETFL, 0)) >= 0) 11821 if ((flags = fcntl(fileno(tracefile), F_GETFL, 0)) >= 0)
11824 fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND); 11822 fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND);
@@ -12648,7 +12646,7 @@ findvar(struct var **vpp, const char *name)
12648/* 12646/*
12649 * Copyright (c) 1999 Herbert Xu <herbert@debian.org> 12647 * Copyright (c) 1999 Herbert Xu <herbert@debian.org>
12650 * This file contains code for the times builtin. 12648 * This file contains code for the times builtin.
12651 * $Id: ash.c,v 1.34 2001/10/31 11:05:49 andersen Exp $ 12649 * $Id: ash.c,v 1.35 2001/11/12 16:44:55 kraai Exp $
12652 */ 12650 */
12653static int timescmd (int argc, char **argv) 12651static int timescmd (int argc, char **argv)
12654{ 12652{