From: Fredrik Tolf Date: Sat, 10 Dec 2011 04:12:45 +0000 (+0100) Subject: Parse the socket mode explicitly in octal. X-Git-Tag: 0.1~3^2~1 X-Git-Url: http://dolda2000.com/gitweb/?p=pdm.git;a=commitdiff_plain;h=cfc372bf6dba593333f2ff5ba226cf7fb71afa12 Parse the socket mode explicitly in octal. --- 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)