diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-09-15 02:00:20 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-09-15 02:00:20 +0530 |
commit | 34e23233ce2bdf723c6b716e3b11c15e4dd34786 (patch) | |
tree | 2c95624eaa97143a691d30df74afcc512d9bad42 /src | |
parent | 1d744eb4c950a5b7f52a3ca162d3bd0661f957c2 (diff) | |
download | tinyproxy-34e23233ce2bdf723c6b716e3b11c15e4dd34786.tar.gz tinyproxy-34e23233ce2bdf723c6b716e3b11c15e4dd34786.zip |
Add doc for change_user()
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -205,6 +205,14 @@ process_cmdline (int argc, char **argv) } } +/** + * change_user: + * @program: The name of the program. Pass argv[0] here. + * + * This function tries to change UID and GID to the ones specified in + * the config file. This function is typically called during + * initialization when the effective user is root. + **/ static void change_user (const char *program) { |