From 12f32660d14e442e42ed667c106fec3a9db79856 Mon Sep 17 00:00:00 2001 From: landley Date: Mon, 13 Mar 2006 15:45:16 +0000 Subject: Patch from Denis Vlasenko to add xstat() and use it. git-svn-id: svn://busybox.net/trunk/busybox@14530 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/uuencode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'coreutils/uuencode.c') diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index d45565c6e..6a82a4b43 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -105,9 +105,7 @@ int uuencode_main(int argc, char **argv) switch (argc - optind) { case 2: src_stream = bb_xfopen(argv[optind], "r"); - if (stat(argv[optind], &stat_buf) < 0) { - bb_perror_msg_and_die("stat"); - } + xstat(argv[optind], &stat_buf); mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); if (src_stream == stdout) { puts("NULL"); -- cgit v1.2.3-55-g6feb