Michael Adam
2ccebf7a95
main: Move setup_logging to after the config post-processing checks.
...
Michael
2009-12-07 00:40:25 +01:00
Michael Adam
1360f530f1
Don't make config_file const in the config struct.
...
Michael
2009-12-07 00:32:22 +01:00
Michael Adam
34dbeb3626
main/conf: add maxidletimeout to initialize_config_defaults
...
But keep the resetting check after processing the conf file.
Michael
2009-12-06 01:57:04 +01:00
Michael Adam
c853cec164
main: fix tab -> spaces
...
Michael
2009-12-06 01:57:04 +01:00
Michael Adam
073233b9f1
conf: move setting of default stathost to initialize_config_defaults()
...
Michael
2009-12-06 01:56:59 +01:00
Michael Adam
5e399a7e17
main: use safestrdup instead of strdup in process_cmdline
...
Michael
2009-12-06 01:55:53 +01:00
Michael Adam
fba81e4174
conf: refactor loading of config file out into load_config_file()
...
and make config_compile and config_parse static to conf.c
Michael
2009-11-14 12:13:10 +01:00
Michael Adam
a09dd9cd00
main: add a config struct argument to process_cmdline.
...
Michael
2009-11-14 12:13:10 +01:00
Michael Adam
8945d9f0ae
main: put initialization of config defaults into a function of its own
...
Michael
2009-11-14 12:13:10 +01:00
Michael Adam
ea2eaef173
extract setup of the logging subsystem into a function of its own.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-11-14 12:13:10 +01:00
Michael Adam
d8da7f55f7
main: move initialization of default config values closer together
...
Michael
2009-11-14 12:13:10 +01:00
Michael Adam
3474de599f
Change child_kill_children() to take the signal as an argument.
2009-10-25 23:33:37 +01:00
Michael Adam
eb4d01cc46
add muks' and my (C) to the main.c boilerplate comment.
...
Michael
2009-10-07 01:08:03 +02:00
Michael Adam
297274ca15
main: add muks and me to the license output (tinyproxy -l)
...
Michael
2009-10-07 01:06:05 +02:00
Mukund Sivaraman
2fd7417f56
Modify usage help text shown when Tinyproxy is run with -h
2009-09-27 08:09:24 +05:30
Mukund Sivaraman
3f0ccdef3c
strdup() the default stathost in config struct as it can be freed
2009-09-27 08:09:23 +05:30
Mukund Sivaraman
0cc707b3ff
Rename conffile.[ch] to conf.[ch]
2009-09-21 09:41:59 +05:30
Mukund Sivaraman
73409c9fe1
build: Remove use of the obsolete AC_TYPE_SIGNAL macro
...
C89 compilers use void return type for signal handler functions.
2009-09-20 14:03:56 +05:30
Mukund Sivaraman
0978decbac
build: Rename autoconf variable
2009-09-20 13:45:47 +05:30
Mukund Sivaraman
abafcf08ab
Remove the target system information when the version is displayed
...
If we require information about the runtime environment, it can be
found using the uname program. And binutils can tell about what the
tinyproxy binary contains. Tinyproxy doesn't have to report this
information.
2009-09-20 12:40:52 +05:30
Mukund Sivaraman
90e7d07f44
Remove ability to change the name of the default configuration file
...
This feature will only confuse us during support, if users come to
us with a Tinyproxy build which has a differently named default config
file. This feature is not that useful anyway.
2009-09-20 12:33:47 +05:30
Mukund Sivaraman
551e041638
Make takesig() into a static function
2009-09-15 04:09:34 +05:30
Mukund Sivaraman
83ebd74d87
Minor indenting changes
...
Also changed the text "configuration file" to read "config file".
2009-09-15 04:07:06 +05:30
Mukund Sivaraman
d243515fa7
Return instead of exit() at end of main()
2009-09-15 04:06:26 +05:30
Mukund Sivaraman
ce55167487
Minor indenting changes
2009-09-15 03:53:35 +05:30
Mukund Sivaraman
b3065b6d18
Exit with proper status in case of bad commandline arguments
2009-09-15 03:53:18 +05:30
Mukund Sivaraman
34e23233ce
Add doc for change_user()
2009-09-15 02:00:20 +05:30
Mukund Sivaraman
1d744eb4c9
Return correct error status when setuid() or setgid() fails
2009-09-15 01:55:16 +05:30
Mukund Sivaraman
56748c5e65
Extract setuid/setgid code into a function
2009-09-15 01:55:16 +05:30
Mukund Sivaraman
5ec5449194
Extract cmdline parsing code into a function
2009-09-15 01:55:16 +05:30
Mukund Sivaraman
96303e10f3
Remove unused variable
2009-09-15 01:15:27 +05:30
Mukund Sivaraman
7b9234f394
Indent code to Tinyproxy coding style
...
The modified files were indented with GNU indent using the
following command:
indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \
-saf -sai -saw -sc -cdw -ce -nut -il0
No other changes of any sort were made.
2009-09-15 01:11:25 +05:30
Mukund Sivaraman
a21cd7e3ed
Rename tinyproxy.[ch] to main.[ch]
2009-08-07 03:42:53 +05:30