summaryrefslogtreecommitdiff
path: root/debian/patches/24option_parser.dpatch
blob: ed478cdf3858fa7c02c32c1ec72b4cc6b0ad9fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh /usr/share/dpatch/dpatch-run
## 24option_parser.dpatch by  <hesso@pool.math.tu-berlin.de>
##
## DP: This is not getopt() and we don't have two leading dashes, so
## DP: parse and match the long options in full.

@DPATCH@
diff -Naur screen-4.0.3.orig/screen.c screen-4.0.3/screen.c
--- screen-4.0.3.orig/screen.c	2008-06-01 23:44:59.000000000 +0200
+++ screen-4.0.3/screen.c	2008-06-01 23:44:59.000000000 +0200
@@ -621,6 +621,8 @@
 		    }
 		  break;
 		case 'w':
+		  if (strcmp(ap+1, "ipe"))
+		    exit_with_usage(myname, "Unknown option %s", --ap);
 		  lsflag = 1;
 		  wipeflag = 1;
 		  if (ac > 1 && !SockMatch)