summaryrefslogtreecommitdiff
path: root/debian/patches/0120-Disable_option_docs.patch
blob: 6fc85a74fc64908e23d2e7f4fc1f1dcf8d0106d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: trunk/foomaticrip.c
===================================================================
--- trunk.orig/foomaticrip.c
+++ trunk/foomaticrip.c
@@ -330,8 +330,9 @@ void process_cmdline_options()
 
         /* "docs" option to print help page */
         if (!strcasecmp(key, "docs")) {
-            do_docs = 1;
-            continue;
+            do_docs = 0;
+	    rip_die(EXIT_OPTION_NOT_AVAILABLE, "Option \"docs\" isn't available now.\n");
+/*            continue; */
         }
         /* "profile" option to supply a color correction profile to a CUPS raster driver */
         if (!strcmp(key, "profile")) {
Index: trunk/foomaticrip.h
===================================================================
--- trunk.orig/foomaticrip.h
+++ trunk/foomaticrip.h
@@ -62,6 +62,7 @@
 #define EXIT_PRNERR_NORETRY_BAD_SETTINGS 9      /* interface settings are invalid */
 #define EXIT_PRNERR_NO_SUCH_ADDRESS 10          /* address lookup failed, may be transient */
 #define EXIT_PRNERR_NORETRY_NO_SUCH_ADDRESS 11  /* address lookup failed, not transient */
+#define EXIT_OPTION_NOT_AVAILABLE 20            /* Otion isn't avalable now */
 #define EXIT_INCAPABLE 50                       /* printer wants (lacks) features or resources */