* debian/patches/401_cppw_src.dpatch: Detect as well too many and too

few arguments.
  * Fix section of debian changelog where update of patches are documented
This commit is contained in:
nekral-guest
2011-11-13 16:30:37 +00:00
parent 5bb64ec036
commit 28af4c5bc5
2 changed files with 14 additions and 12 deletions

View File

@@ -220,11 +220,11 @@
+ }
+ }
+
+ if (optind >= argc) {
+ cppwexit (_("missing file argument, -h for usage"),0,1);
+ if (argc != optind + 1) {
+ cppwexit (_("wrong number of arguments, -h for usage"),0,1);
+ }
+
+ in_file = argv[argc - 1];
+ in_file = argv[optind];
+
+ if (do_cppw) {
+ if (cpshadow) {