Skip to content

Commit 5cf1d13

Browse files
Merge branch 'release/4.4.18'
2 parents 02f2b3a + 8693087 commit 5cf1d13

File tree

5 files changed

+36
-7
lines changed

5 files changed

+36
-7
lines changed

docs/release-notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Release Notes
55
.. toctree::
66
:maxdepth: 2
77

8+
release-notes/version-4.4.18
89
release-notes/version-4.4.17
910
release-notes/version-4.4.16
1011
release-notes/version-4.4.15

docs/release-notes/version-4.4.17.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ Bugs Fixed
1515

1616
1. If ``mod_wsgi-express`` was run under a user ID for which there was no
1717
password entry in the system password file, it would fail when looking up
18-
the user name. If this occurs now use ``#nnn`` as the default user name.
18+
the user name. If this occurs now use ``#nnn`` as the default user name,
19+
where ``nnn`` is the user ID.

docs/release-notes/version-4.4.18.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
==============
2+
Version 4.4.18
3+
==============
4+
5+
Version 4.4.18 of mod_wsgi can be obtained from:
6+
7+
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.4.18
8+
9+
For details on the availability of Windows binaries see:
10+
11+
https://github.com/GrahamDumpleton/mod_wsgi/tree/master/win32
12+
13+
Bugs Fixed
14+
----------
15+
16+
1. If ``mod_wsgi-express`` was run under a user ID for which there was no
17+
password entry in the system password file, it would fail when looking up
18+
the group name. If this occurs now use ``#nnn`` as the default group name,
19+
where ``nnn`` is the user ID.

src/server/__init__.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,23 @@ def where():
5151

5252
def default_run_user():
5353
try:
54-
return pwd.getpwuid(os.getuid()).pw_name
54+
uid = os.getuid()
55+
return pwd.getpwuid(uid).pw_name
5556
except KeyError:
56-
return '#%d' % os.getuid()
57+
return '#%d' % uid
5758

5859
def default_run_group():
5960
try:
60-
return grp.getgrgid(pwd.getpwuid(os.getuid()).pw_gid).gr_name
61+
uid = os.getuid()
62+
entry = pwd.getpwuid(uid)
6163
except KeyError:
62-
return '#%d' % pwd.getpwuid(os.getuid()).pw_gid
64+
return '#%d' % uid
65+
66+
try:
67+
gid = entry.pw_gid
68+
return grp.getgrgid(gid).gr_name
69+
except KeyError:
70+
return '#%d' % gid
6371

6472
def find_program(names, default=None, paths=[]):
6573
for name in names:

src/server/wsgi_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
#define MOD_WSGI_MAJORVERSION_NUMBER 4
2727
#define MOD_WSGI_MINORVERSION_NUMBER 4
28-
#define MOD_WSGI_MICROVERSION_NUMBER 17
29-
#define MOD_WSGI_VERSION_STRING "4.4.17"
28+
#define MOD_WSGI_MICROVERSION_NUMBER 18
29+
#define MOD_WSGI_VERSION_STRING "4.4.18"
3030

3131
/* ------------------------------------------------------------------------- */
3232

0 commit comments

Comments
 (0)