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

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