aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2010-02-08 13:11:44 +0000
committerStefan Bühler <stbuehler@web.de>2010-02-08 13:11:44 +0000
commitdb801f56499a0d490a80718416ff3ff3138a8d62 (patch)
tree8bd63cb7b6fc4e15ba4a8d463180f6e8787477a8
parentf7aec4404cdfd81585f73d9ca335b1bf5b44dbc5 (diff)
downloadspawn-fcgi-db801f56499a0d490a80718416ff3ff3138a8d62.tar.gz
spawn-fcgi-db801f56499a0d490a80718416ff3ff3138a8d62.zip
Use octal mode for -M (patch by dfjoerg)
git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@57 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
-rw-r--r--NEWS1
-rw-r--r--src/spawn-fcgi.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index c037133..0168419 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ NEWS
====
- 1.6.4 -
+ * Use octal mode for -M (patch by dfjoerg)
- 1.6.3 - 2009-09-23
* Fix unix socket mode change to work without specifying user/group for socket
diff --git a/src/spawn-fcgi.c b/src/spawn-fcgi.c
index 5271a31..3a459f3 100644
--- a/src/spawn-fcgi.c
+++ b/src/spawn-fcgi.c
@@ -489,7 +489,7 @@ int main(int argc, char **argv) {
case 'U': if (i_am_root) { sockusername = optarg; } /* set socket user */ break;
case 'G': if (i_am_root) { sockgroupname = optarg; } /* set socket group */ break;
case 'S': if (i_am_root) { sockbeforechroot = 1; } /* open socket before chroot() */ break;
- case 'M': sockmode = strtol(optarg, NULL, 0); /* set socket mode */ break;
+ case 'M': sockmode = strtol(optarg, NULL, 8); /* set socket mode */ break;
case 'n': nofork = 1; break;
case 'P': pid_file = optarg; /* PID file */ break;
case 'v': show_version(); return 0;