Commit Graph

45 Commits

Author SHA1 Message Date
Björn Ketelaars
b1de821740 combine 2 if-statements. While here; spacing, spacing, spacing 2015-09-19 18:00:06 +02:00
Björn Ketelaars
7e33e463bb remove info(), instead used printf's. Check for DAEMON at some stages 2015-09-19 17:35:16 +02:00
Björn Ketelaars
f7926b75fc display_date() is only used one time, doesn't make sense to make it a function 2015-09-19 17:35:15 +02:00
Björn Ketelaars
f9d7f3d5c8 WARNING != ERROR 2015-09-19 17:35:15 +02:00
Björn Ketelaars
9c2919f01d move all info() lines from parse_parameters() to startup_message(). Move DAEMON = 1 to getopt 2015-09-19 17:35:14 +02:00
Björn Ketelaars
19c2d8df76 main() is exptected to return a value 2015-09-19 17:35:14 +02:00
Björn Ketelaars
6f16b43387 add option to daemonize fiche 2015-09-04 13:54:56 +02:00
Björn Ketelaars
7a2b8b1888 wrap printf in info() and replace a couple of printf statements 2015-09-04 13:54:55 +02:00
Björn Ketelaars
89c5fc8680 stop using display_line(). Instead use a printf statement 2015-09-04 13:54:55 +02:00
Renaud Allard
047ecf672c Add -e option to use the extended charset I committed before.
"reduced" charset makes it easier to remember the URL by default
2015-08-29 11:34:32 +02:00
Renaud Allard
73bc067641 Use arc4random on BSD systems to avoid complaints from the compiler 2015-08-27 16:37:13 +02:00
Renaud Allard
8ccfcc8c06 Avoid using strcpy and strcat
That will also remove the warnings given by picky compilers
2015-08-27 15:55:09 +02:00
Renaud Allard
caa6f5ed6a Former patch had a small bug, this has been corrected 2015-08-27 14:59:08 +02:00
Renaud Allard
1bc2132e1d Do not append a / at the end of the output path
Solves issue #13
2015-08-27 14:48:21 +02:00
Renaud Allard
49ea4c7ccd Use MSG_DONTWAIT to use non blocking operation. This solves issue #14 2015-08-27 11:51:25 +02:00
Renaud Allard
318987c100 Correct a typo: lenght -> length 2015-08-27 10:33:39 +02:00
Maxim V Filimonov
7ee9910cac Makefile: more *BSD-friendly, got rid of mandatory gcc 2015-05-01 23:49:11 +03:00
solusipse
157353707e changed logging format 2014-09-09 03:26:21 +02:00
solusipse
1d425525a1 removed unused variables 2013-11-01 11:03:17 +01:00
solusipse
c10d19e9d9 fixed code that caused warnings 2013-10-30 00:39:51 +01:00
solusipse
249413374d changed printing policy 2013-09-26 13:06:52 +02:00
solusipse
33f00487d0 issue #3 (rejecting http) 2013-09-26 12:36:29 +02:00
solusipse
0c3e6aacd4 added newline symbol at the end of two error messages 2013-09-22 21:43:09 +02:00
solusipse
eabb2f5b97 increased slug array size 2013-09-18 01:10:50 +02:00
solusipse
32dbdfe86f increased slug array size 2013-09-18 01:02:00 +02:00
Eugene Bujak
fe0fcbe1e6 Fix segfault -- buffers didn't have space for null-byte string terminator. 2013-09-17 21:31:28 +04:00
Eugene Bujak
5dc293e241 Add newlines at end of file. 2013-09-17 21:06:20 +04:00
solusipse
cb774abf27 changed default timeout value 2013-09-17 01:28:36 +02:00
solusipse
6ee6fa3100 fixing hostname error problem 2013-09-16 22:49:39 +02:00
solusipse
8b553306f0 minor fix 2013-09-16 15:07:31 +02:00
solusipse
7b48aed402 changed error policy when obtaining ip and hostname 2013-09-16 13:37:44 +02:00
solusipse
c1e3711742 added details to error messages 2013-09-16 10:53:32 +02:00
solusipse
924341e973 updated usage info 2013-09-14 00:29:00 +02:00
solusipse
0eedbf68c0 added whitelist 2013-09-14 00:17:26 +02:00
solusipse
d1a66efe6e added feature of changing user 2013-09-13 23:51:58 +02:00
solusipse
d6865f63f2 saving to txt by default now (compability issues) 2013-09-13 22:16:05 +02:00
solusipse
2d5e5c9c31 added waitall flag for socket 2013-09-13 20:28:01 +02:00
solusipse
0f7583f3ed added ban mechanism 2013-09-10 10:30:49 +02:00
solusipse
d25e9baf02 added logging 2013-09-09 21:02:33 +02:00
solusipse
7164539018 moved address function call to thread 2013-09-09 03:47:25 +02:00
solusipse
b932c45685 changed order of setting BASEDIR variable 2013-09-06 14:40:09 +02:00
solusipse
832fc9b695 changed permission settings for new directories 2013-09-06 14:08:50 +02:00
solusipse
ebe5c33cd6 fixed time seed issue 2013-09-06 05:03:11 +02:00
solusipse
c1e0d782ed added header 2013-09-06 04:42:52 +02:00
solusipse
829c8e16d8 first stable version 2013-09-06 04:01:55 +02:00