14 Jul 2008 14:11
[PATCH] Allow numeric uid/gids in User and Group directives
This change allows numeric uid/gids to be specified in the User and
Group directives in tinyproxy.conf. Formerly, only username and group
names were accepted. This fixes bug #15, which was created after
looking at a case on the OpenWrt wiki.
X-Banu-Bugzilla-Ids: 15
---
src/conffile.c | 2 +-
src/tinyproxy.c | 71 ++++++++++++++++++++++++++++++++++++++----------------
src/tinyproxy.h | 2 +-
3 files changed, 52 insertions(+), 23 deletions(-)
diff --git a/src/conffile.c b/src/conffile.c
index 2ae1d90..78f5da3 100644
--- a/src/conffile.c
+++ b/src/conffile.c
<at> <at> -557,7 +557,7 <at> <at> HANDLE_FUNC(handle_connectport)
static
HANDLE_FUNC(handle_user)
{
- return set_string_arg(&conf->username, line, &match[2]);
+ return set_string_arg(&conf->user, line, &match[2]);
}
static
diff --git a/src/tinyproxy.c b/src/tinyproxy.c
index d185d51..88bc9d3 100644
--- a/src/tinyproxy.c
+++ b/src/tinyproxy.c
<at> <at> -149,6 +149,24 <at> <at> Options:\n\
(Continue reading)
RSS Feed