1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 23exitcode_q_ls.dpatch by <hesso@pool.math.tu-berlin.de>
4
## DP: Make the exitcode of '-q -ls' and friends ('-qr -ls' and even
5
## DP: '-qdr -ls') match the documentation.
8
diff -Naur screen-4.0.3.orig/screen.c screen-4.0.3/screen.c
9
--- screen-4.0.3.orig/screen.c 2008-06-01 23:41:11.000000000 +0200
10
+++ screen-4.0.3/screen.c 2008-06-01 23:44:59.000000000 +0200
11
@@ -1073,8 +1073,12 @@
14
i = FindSocket((int *)NULL, &fo, &oth, SockMatch);
16
- exit(8 + (fo ? ((oth || i) ? 2 : 1) : 0) + i);
21
+ exit(9 + (fo || oth ? 1 : 0) + fo);
24
Panic(0, "No Sockets found in %s.\n", SockPath);
25
Panic(0, "%d Socket%s in %s.\n", fo, fo > 1 ? "s" : "", SockPath);