From cfc372bf6dba593333f2ff5ba226cf7fb71afa12 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 10 Dec 2011 05:12:45 +0100 Subject: [PATCH] Parse the socket mode explicitly in octal. --- pdm/srv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdm/srv.py b/pdm/srv.py index 75b8918..9f6869e 100644 --- a/pdm/srv.py +++ b/pdm/srv.py @@ -365,7 +365,7 @@ def listen(spec): mode = 0600 group = None if len(parts) > 1: - mode = int(parts[1], 0) + mode = int(parts[1], 8) if len(parts) > 2: group = parts[2] ret = unixlistener(parts[0], mode = mode, group = group) -- 2.11.0