Package: mailman / 1:2.1.18-2+deb8u2

52_check_perms_lstat.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Tollef Fog Heen <tfheen@debian.org>
Description: Use lstat instead of stat in check_perms
Forwarded: not-needed

Index: b/bin/check_perms
===================================================================
--- a/bin/check_perms	2012-05-20 14:21:35.462867016 +0200
+++ b/bin/check_perms	2012-05-20 14:21:41.342896168 +0200
@@ -82,7 +82,7 @@
     return os.stat(path)[ST_MODE]
 
 def statgidmode(path):
-    stat = os.stat(path)
+    stat = os.lstat(path)
     return stat[ST_MODE], stat[ST_GID]
 
 seen = {}