From 59f4715254856a3204d043f1ed319928f2d6cc1e 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 8752d97..6ce5d51 100644 --- a/pdm/srv.py +++ b/pdm/srv.py @@ -365,7 +365,7 @@ def listen(spec): mode = 0o600 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