summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
AgeCommit message (Collapse)Author
2013-11-09[BB#63] conf: Allow multiple Listen statements in the config.Michael Adam
This introduces a list (vector) of addresses instead of having just one address string. Signed-off-by: Michael Adam <obnox@samba.org>
2013-11-09child: add addr argument to child_listening_sock().Michael Adam
Signed-off-by: Michael Adam <obnox@samba.org>
2013-11-01[BB#115] Drop supplementary groupsGaudenz Steinlin
Supplementary groups are inherited from the calling process. Drop all supplementary groups if the "Group" configuration directive is set to change to a different user. Otherwise the process may have more rights than expected. Reviewed-by: Michael Adam <obnox@samba.org>
2011-02-28Update URLs of TinyproxyMukund Sivaraman
2010-06-02[BB#74] Create log and pid files after we drop privsMukund Sivaraman
2010-06-02Remove excessive codeMukund Sivaraman
2010-06-01[BB#89] Don't recompile regular expressionsJohn van der Kamp
This is a modification of a patch originally written by John van der Kamp <john@kirika.demon.nl> at <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579427#12> The modification was done by the committer.
2010-04-21Revert "main: drop privileges right after reading the config"Mukund Sivaraman
This reverts commit 7a9abc2a04dd8ed1f113aa9c803af24adfb22773. It should fix the issue in bug #87.
2010-03-28Just fix the support URLsMukund Sivaraman
2010-03-28Revert "Update Tinyproxy website URLs"Mukund Sivaraman
This reverts commit b108162dfb408b4818a6ea8b2a148ddaf1506bbe.
2010-03-27Update Tinyproxy website URLsMukund Sivaraman
2010-03-02change the default pid file location to ↵Michael Adam
"@LOCALSTATEDIR@/run/tinyproxy/tinyproxy.pid" I.e., add a tinyproxy subdirectory. This is meant to ease running tinyproxy as non-root user. The subdirectory can be used to give the tinyproxy user write permission. Michael
2010-03-02change the default log file location to ↵Michael Adam
"@LOCALSTATEDIR@/log/tinyproxy/tinyproxy.log" i.e. add a tinyproxy subdirectory. This is meant to ease running tinyproxy as non-root user the subdirectory can be used to give the tinyproxy user write permission. Michael
2010-03-02main: some tabs->spacesMichael Adam
2010-03-02main: move a log message.Michael Adam
2010-03-02main: drop privileges right after reading the configMichael Adam
This is the second part of fixing bug #74. I lets tinyproxy create its log and pid files as the user as which it is running, so that later on at SIGHUP, the log file can successfully be reopened. Michael
2010-03-02main: separate loading of config and setup_logging at startupMichael Adam
This is the first part of a fix for bug #74 (making reloading of config work if running as non-privileged user) Michael
2010-02-17Display upstream proxy support in usage messageMukund Sivaraman
2010-02-17Update help text a littleMukund Sivaraman
2010-01-19Change to for loopMukund Sivaraman
2010-01-18Show authors and documenters when license is requestedMukund Sivaraman
2010-01-13conf: add a default for PidFile: LOCALSTATEDIR/run/tinyproxy.pidMichael Adam
Michael
2010-01-13conf: set default LogFile to LOCALSTATEDIR/log/tinyproxy.logMichael Adam
Michael
2010-01-10Happy new year 2010!Michael Adam
2009-12-23Use shutdown_logging() in main().Michael Adam
Michael
2009-12-23Use reload_config() in main() to load config and init logging.Michael Adam
Michael
2009-12-23enhance reload_config to correctly re-initialize the logging subsystem.Michael Adam
This includes reopening the log file (in append mode). Also switching from syslog to logfile and visa versa are included when called from the SIGHUP handler. Michael
2009-12-23main: remove global bool processed_config_file.Michael Adam
This seemed out of place. Now the information is stored in the correct places (as log.c:logging_initialized). This way, we will be able to cleanly re-initialize logging during config reload (SIGHUP) in subsequent commits. Michael
2009-12-23log: call send_stored_logs in setup_logging instead of in main().Michael Adam
This is where it actually belongs. Michael
2009-12-22main: add convenience wrapper reload_config() for reload_config_file()Michael Adam
Michael
2009-12-22conf: rename reload_config --> reload_config_fileMichael Adam
Michael
2009-12-07Use reload_config() in main.Michael Adam
Michael
2009-12-07main: Move setup_logging to after the config post-processing checks.Michael Adam
Michael
2009-12-07Don't make config_file const in the config struct.Michael Adam
Michael
2009-12-06main/conf: add maxidletimeout to initialize_config_defaultsMichael Adam
But keep the resetting check after processing the conf file. Michael
2009-12-06main: fix tab -> spacesMichael Adam
Michael
2009-12-06conf: move setting of default stathost to initialize_config_defaults()Michael Adam
Michael
2009-12-06main: use safestrdup instead of strdup in process_cmdlineMichael Adam
Michael
2009-11-14conf: refactor loading of config file out into load_config_file()Michael Adam
and make config_compile and config_parse static to conf.c Michael
2009-11-14main: add a config struct argument to process_cmdline.Michael Adam
Michael
2009-11-14main: put initialization of config defaults into a function of its ownMichael Adam
Michael
2009-11-14extract setup of the logging subsystem into a function of its own.Michael Adam
Signed-off-by: Michael Adam <obnox@samba.org>
2009-11-14main: move initialization of default config values closer togetherMichael Adam
Michael
2009-10-25Change child_kill_children() to take the signal as an argument.Michael Adam
2009-10-07add muks' and my (C) to the main.c boilerplate comment.Michael Adam
Michael
2009-10-07main: add muks and me to the license output (tinyproxy -l)Michael Adam
Michael
2009-09-27Modify usage help text shown when Tinyproxy is run with -hMukund Sivaraman
2009-09-27strdup() the default stathost in config struct as it can be freedMukund Sivaraman
2009-09-21Rename conffile.[ch] to conf.[ch]Mukund Sivaraman
2009-09-20build: Remove use of the obsolete AC_TYPE_SIGNAL macroMukund Sivaraman
C89 compilers use void return type for signal handler functions.