From a5f09c668e8571844c065041f3c1f122fa5c62fe Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 12 Nov 2001 16:44:55 +0000 Subject: Use fopen wrapper. --- shell/ash.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'shell') 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 * 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) { -- cgit v1.2.3