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~6 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=59f4715254856a3204d043f1ed319928f2d6cc1e;p=pdm.git Parse the socket mode explicitly in octal. --- 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)