Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-11-12 19:44:55 +0300
committerMatt Kraai <kraai@debian.org>2001-11-12 19:44:55 +0300
commita5f09c668e8571844c065041f3c1f122fa5c62fe (patch)
tree7bb51b4c59e729627b3113a5528c59a0351b1de5 /shell
parentc5f9a9dd0cf2154de6a581ffc9018715a02c118b (diff)
Use fopen wrapper.
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() {
#else
strcpy(s, "./trace");
#endif /* not_this_way */
- if ((tracefile = fopen(s, "a")) == NULL) {
- fprintf(stderr, "Can't open %s\n", s);
+ if ((tracefile = wfopen(s, "a")) == NULL)
return;
- }
#ifdef O_APPEND
if ((flags = fcntl(fileno(tracefile), F_GETFL, 0)) >= 0)
fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND);
@@ -12648,7 +12646,7 @@ findvar(struct var **vpp, const char *name)
/*
* Copyright (c) 1999 Herbert Xu <herbert@debian.org>
* This file contains code for the times builtin.
- * $Id: ash.c,v 1.34 2001/10/31 11:05:49 andersen Exp $
+ * $Id: ash.c,v 1.35 2001/11/12 16:44:55 kraai Exp $
*/
static int timescmd (int argc, char **argv)
{