9b2f73678dMerge branch 'master' of git://github.com/renaudallard/fiche into renaudallard-master
solusipse
2015-09-23 19:09:41 +02:00
95f1cacfbeMerge branch 'master' of git://github.com/ALSchwalm/fiche into ALSchwalm-master
solusipse
2015-09-23 18:27:18 +02:00
4c3f5908e3Merge pull request #20 from bket/drop_priv
solusipse
2015-09-22 04:33:34 +02:00
79d3f1992eupdate README.md
Björn Ketelaars
2015-09-04 16:40:29 +02:00
c42b8526f0only 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()
Björn Ketelaars
2015-09-04 16:24:02 +02:00
053bd8d5d6drop privileges when running as root
Björn Ketelaars
2015-09-04 16:16:31 +02:00
36f8df2011instead of using perror() use printf(). Removes ugly and useless error codes. While here move function to *.c
Björn Ketelaars
2015-09-04 17:08:09 +02:00
880e5edf1breturn after error() does not make sense
Björn Ketelaars
2015-09-04 17:11:28 +02:00
a284706e78Merge pull request #19 from bket/cleanup
solusipse
2015-09-19 18:49:06 +02:00
b1de821740combine 2 if-statements. While here; spacing, spacing, spacing
Björn Ketelaars
2015-09-19 17:54:15 +02:00
7e33e463bbremove info(), instead used printf's. Check for DAEMON at some stages
Björn Ketelaars
2015-09-19 17:29:40 +02:00
f7926b75fcdisplay_date() is only used one time, doesn't make sense to make it a function
Björn Ketelaars
2015-09-19 17:23:30 +02:00
f9d7f3d5c8WARNING != ERROR
Björn Ketelaars
2015-09-19 17:18:41 +02:00
9c2919f01dmove all info() lines from parse_parameters() to startup_message(). Move DAEMON = 1 to getopt
Björn Ketelaars
2015-09-19 17:16:59 +02:00
19c2d8df76main() is exptected to return a value
Björn Ketelaars
2015-09-19 17:08:47 +02:00
888b578907Merge pull request #18 from bket/daemon
solusipse
2015-09-19 16:29:54 +02:00
39aa6a7a53Chnage the travis script so that it builds
Renaud Allard
2015-09-07 13:18:05 +02:00
2972046f5fmodify README.md accordingly. While here explain -e option
Björn Ketelaars
2015-09-04 14:26:59 +02:00
6f16b43387add option to daemonize fiche
Björn Ketelaars
2015-09-04 12:03:25 +02:00
7a2b8b1888wrap printf in info() and replace a couple of printf statements
Björn Ketelaars
2015-09-04 11:59:44 +02:00
89c5fc8680stop using display_line(). Instead use a printf statement
Björn Ketelaars
2015-09-04 13:01:28 +02:00
bb59a374a1remove unused function *return_line()
Björn Ketelaars
2015-09-04 13:24:48 +02:00
6743d0e6b7Use ./configure to detect arc4random and use it if present
Renaud Allard
2015-09-03 16:11:12 +02:00
b6d1c91f71Make file paths unpredictable
Adam Schwalm
2015-09-02 18:16:23 -05:00
a0bbd2fa28Merge pull request #15 from renaudallard/master
solusipse
2015-08-29 16:12:12 +02:00
047ecf672cAdd -e option to use the extended charset I committed before. "reduced" charset makes it easier to remember the URL by default
Renaud Allard
2015-08-29 11:34:32 +02:00
73bc067641Use arc4random on BSD systems to avoid complaints from the compiler
Renaud Allard
2015-08-27 16:37:13 +02:00
8ccfcc8c06Avoid using strcpy and strcat That will also remove the warnings given by picky compilers
Renaud Allard
2015-08-27 15:55:09 +02:00
caa6f5ed6aFormer patch had a small bug, this has been corrected
Renaud Allard
2015-08-27 14:59:08 +02:00
1bc2132e1dDo not append a / at the end of the output path Solves issue #13
Renaud Allard
2015-08-27 14:48:21 +02:00
d771d7bdfdDecrease the likeliness of name collisions
Renaud Allard
2015-08-27 14:36:36 +02:00
49ea4c7ccdUse MSG_DONTWAIT to use non blocking operation. This solves issue #14
Renaud Allard
2015-08-27 11:51:25 +02:00