Blame SOURCES/sharutils-4.13.3-Allow-exactly-one-input-file-when-specifying-output-.patch

c9392b
From 2e633b222dbdccfd04506a0c0028471feb101524 Mon Sep 17 00:00:00 2001
c9392b
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
c9392b
Date: Wed, 23 Jan 2013 13:15:18 +0100
c9392b
Subject: [PATCH] Allow exactly one input file when specifying output file
c9392b
c9392b
This fixes regression in 4.13.3. The fix ported from 4.13.4pre2.
c9392b
<https://bugzilla.redhat.com/show_bug.cgi?id=901895>
c9392b
---
c9392b
 src/uudecode.c | 4 ++--
c9392b
 1 file changed, 2 insertions(+), 2 deletions(-)
c9392b
c9392b
diff --git a/src/uudecode.c b/src/uudecode.c
c9392b
index 2ef5a92..723bcff 100644
c9392b
--- a/src/uudecode.c
c9392b
+++ b/src/uudecode.c
c9392b
@@ -490,7 +490,7 @@ main (int argc, char const * const * argv)
c9392b
     exit_status = decode ("stdin");
c9392b
     break;
c9392b
 
c9392b
-  case 1:
c9392b
+  default:
c9392b
     if (HAVE_OPT(OUTPUT_FILE))
c9392b
       {
c9392b
         usage_message(_("You cannot specify an output file when processing\n\
c9392b
@@ -499,7 +499,7 @@ multiple input files.\n"));
c9392b
       }
c9392b
     /* FALLTHROUGH */
c9392b
 
c9392b
-  default:
c9392b
+  case 1:
c9392b
     while (--argc >= 0)
c9392b
       {
c9392b
         char const * f = *(argv++);
c9392b
-- 
c9392b
1.8.1
c9392b