foomatic/foomatic-filters-custom-command.patch

14 lines
584 B
Diff
Raw Normal View History

2009-11-08 21:01:42 +00:00
diff -up foomatic-filters-4.0.3/options.c.custom-command foomatic-filters-4.0.3/options.c
--- foomatic-filters-4.0.3/options.c.custom-command 2009-08-19 19:08:41.000000000 +0100
+++ foomatic-filters-4.0.3/options.c 2009-11-08 21:00:03.100887926 +0000
@@ -865,7 +865,8 @@ int option_get_command(dstr_t *cmd, opti
choice = option_find_choice(opt, valstr);
2009-11-08 21:01:42 +00:00
if (choice) {
dstrcpy(cmd, choice->command);
2009-11-08 21:01:42 +00:00
- return 1;
+ if (!option_use_foomatic_prototype(opt))
+ return 1;
}
2009-11-08 21:01:42 +00:00
/* Consider "None" as the empty string for string and password options */