aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-12 16:44:55 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-12 16:44:55 +0000
commitd3243f4d2da75911033434bb75fd9d191b3014f1 (patch)
tree7bb51b4c59e729627b3113a5528c59a0351b1de5 /shell
parente3116c4868fa26a1a791f4f1c66e12958bd9d5cf (diff)
downloadbusybox-w32-d3243f4d2da75911033434bb75fd9d191b3014f1.tar.gz
busybox-w32-d3243f4d2da75911033434bb75fd9d191b3014f1.tar.bz2
busybox-w32-d3243f4d2da75911033434bb75fd9d191b3014f1.zip
Use fopen wrapper.
git-svn-id: svn://busybox.net/trunk/busybox@3663 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-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{