67 Commits

Author SHA1 Message Date
Lars Kellogg-Stedman
441debc4c7 teach fiche about binding to a specific address
Add the -L <listen_addr> option which permits fiche to bind to a
specific local address rather than INADDR_ANY.
2018-02-27 11:24:58 -05:00
solusipse
10129c8302 Simplified mechanism for null-terminating main buffer 2017-10-19 22:18:57 +02:00
solusipse
6d292a3001 Fixed #63 2017-10-12 01:28:35 +02:00
solusipse
cdd910b150 Re-added support for https (#33) 2017-09-17 14:34:44 +02:00
solusipse
10cb524891 Reworked date function to take buffer as an argument 2017-09-05 22:04:21 +02:00
solusipse
99b45b93f2 Changed method of touching logfile before using 2017-09-02 22:20:08 +02:00
solusipse
53c0027b3c Extra checks, fixed cleanup in file generating routine 2017-09-02 19:48:02 +02:00
solusipse
7575609c41 Fixed null dereference, renamed argument to match declaration 2017-09-02 19:44:08 +02:00
solusipse
319bd73273 Failure on slug generation is now properly handled 2017-09-02 19:30:08 +02:00
solusipse
bd1751693b Fixed wrong order of cleanup calls 2017-09-02 19:12:10 +02:00
solusipse
8ff08a0409 Entirely rewritten fiche 2017-09-02 17:51:43 +02:00
nnnn20430
b9ed17e937 added IPv6 support 2016-03-15 14:13:08 +01:00
solusipse
a5c137c06d enhancement #33 2016-01-23 12:36:53 +01:00
solusipse
abf8ae5117 fixing issue #31 2016-01-23 11:44:46 +01:00
Christian Gießen
fdbfa98938 Mitigated the non-critical errors into warnings 2015-10-31 12:04:43 +01:00
Christian Gießen
5ceb31a97e added checks on the return values of read/write 2015-10-31 09:18:36 +01:00
Hypsurus
bea2fc990d Fix segfault in fopen, no check for null 2015-10-13 19:40:23 +03:00
Hypsurus
a409d1cee6 error() - no need to use ERROR multiple times 2015-10-13 19:30:30 +03:00
Björn Ketelaars
c42b8526f0 only root can chown. However, when running as root privileges are dropped. As such, it doesn't make sense to have a function like change_owner() 2015-09-19 19:57:02 +02:00
Björn Ketelaars
053bd8d5d6 drop privileges when running as root 2015-09-19 19:57:01 +02:00
Björn Ketelaars
36f8df2011 instead of using perror() use printf(). Removes ugly and useless error codes. While here move function to *.c 2015-09-19 19:57:01 +02:00
Björn Ketelaars
880e5edf1b return after error() does not make sense 2015-09-19 19:57:00 +02:00
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