1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 25allow_symlink_sockdir.dpatch by <hesso@pool.math.tu-berlin.de>
4
## DP: I don't know why screen should not allow a symlinked SockDir;
5
## DP: so now it does. (Note: this is one of TWO calls to lstat()
6
## DP: the whole program has - and this one isn't even wrapped in
7
## DP: #ifdef HAVE_LSTAT as it should.)
10
diff -Nau screen-4.0.3.orig/screen.c screen-4.0.3/screen.c
11
--- screen-4.0.3.orig/screen.c
12
+++ screen-4.0.3/screen.c
17
- if (lstat(SockDir, &st))
18
+ if (stat(SockDir, &st))
20
n = (eff_uid == 0 && (real_uid || eff_gid == real_gid)) ? 0755 :
21
(eff_gid != real_gid) ? 0775 :