From c5b1d4d6b14f22b5e2f7ae42eb01bf2746b8001c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 13 Mar 2006 15:45:16 +0000 Subject: Patch from Denis Vlasenko to add xstat() and use it. --- 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