]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The lp command did not show errors for unknown "--foo" (STR #4261)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 21 Jan 2013 13:12:23 +0000 (13:12 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 21 Jan 2013 13:12:23 +0000 (13:12 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10829 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.6.txt
systemv/lp.c

index 61658d25c4d7f2d5881ea25be3a2606f125f1792..3b40efd383807b45fb28952bc8f5bcd2a1b8f788 100644 (file)
@@ -12,7 +12,8 @@ CHANGES IN CUPS V1.6.2
        - Added a French localization (STR #4247)
        - Added a Russian localization (STR #4228)
        - Updated the Catalan localization (STR #4202)
-       - Fixed a bug where bad IPP responses could crash ipptool (STR #4262)
+       - The lp command did not show errors for unknown "--foo" (STR #4261)
+       - Bad IPP responses could crash ipptool (STR #4262)
        - Added a USB quirk rule for Xerox Phaser 3124 printers (STR #4217)
        - Added USB blacklisting for printers that require a custom backend
          (STR #4218)
index f7b1a3c849115f6d6f6c30cff119432450690ab4..96728b26eaa8cd4992d51313a6686e2f62877b04 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   "lp" command for CUPS.
  *
- *   Copyright 2007-2012 by Apple Inc.
+ *   Copyright 2007-2013 by Apple Inc.
  *   Copyright 1997-2007 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -489,6 +489,13 @@ main(int  argc,                            /* I - Number of command-line arguments */
            break;
 
         case '-' : /* Stop processing options */
+            if (argv[i][2])
+            {
+             _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%s\"."),
+                             argv[0], argv[i]);
+             return (1);
+           }
+
            end_options = 1;
            break;