summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-20fix crash with repeated <link href=""> tags in Atom feedsHiltjo Posthuma
add some detail to the comments
2016-03-19don't use temporary pointer for realloc, it will exit on errorHiltjo Posthuma
2016-03-10remove cast of unused variablesHiltjo Posthuma
2016-03-10Makefile: define CPPFLAGS once, fix typoHiltjo Posthuma
2016-03-08Makefile: also clean util and xml object filesHiltjo Posthuma
2016-03-04remove optimization with no effect, makes the code cleanerHiltjo Posthuma
2016-03-04sfeed_frames: use S_IR* names (portability), respect umaskHiltjo Posthuma
use 0777 and 0666 permissions, it will respect the process umask (generally 0022), so 0755 and 0644 effectively.
2016-03-04sfeed_frames: use mkdir and check errno EEXISTHiltjo Posthuma
no need to stat and then mkdir, this is a (theoretical) race-condition too.
2016-03-02sfeed: no need to call strlen, we know the length alreadyHiltjo Posthuma
2016-02-29sfeed_frames: no need to read from index files, mode "w+b" to "wb"Hiltjo Posthuma
2016-02-29sfeed_frames: whoops, set file permissions (else its 0000)Hiltjo Posthuma
2016-02-28sfeed_frames: add fattr to pledge...Hiltjo Posthuma
... it did not abort, but set it anyway. I think cpath implies fattr, it makes sense.
2016-02-28sfeed_frames: fix open file permission (write only).Hiltjo Posthuma
check errno EEXIST (file exist? -> ignore), handle other errno codes as errors. ... also make sure to fflush write before modifying file access and modification timestamps or it will be overwritten again.
2016-02-28sfeed_frames: fix TOCTTUO with access() and fopen()Hiltjo Posthuma
... and use futimens() in favor of deprecated utime(). a minor difference in behaviour is now filetimes are only updated when the file doesn't exist. minor cleanup: remove namelen, its variable was unused (reported by cppcheck).
2016-02-28use prime as seed for murmur3 seed (doesnt matter much)Hiltjo Posthuma
2016-02-28null-terminate line at newline from getline()Hiltjo Posthuma
2016-02-28util: simplify encodehex, use inlineHiltjo Posthuma
2016-02-28sfeed_tail: terminate line at newline, small cleanupHiltjo Posthuma
2016-02-28sfeed_tail: fix pledge when opening filesHiltjo Posthuma
2016-02-27config.mk: disable pledge by default, only OpenBSD 5.9 (unreleased) supports itHiltjo Posthuma
2016-02-27simplify build and fix linking for strlcat.o and strlcpy.oHiltjo Posthuma
separate util source (util.c, strlcat.c, strlcpy.c) to libutil.a separate xml source (xml.c) to libxml.a
2016-02-27fix missing includes for uint32_t and time_tHiltjo Posthuma
2016-02-27add util for pledgeHiltjo Posthuma
2016-02-27reference sfeedrc(5) in manpagesHiltjo Posthuma
2016-02-27sfeed_tailHiltjo Posthuma
2016-02-27various improvementsHiltjo Posthuma
- pledge tools and add define to enable it on platforms that support it, currently only OpenBSD 5.9+ - separate getline and parseline functionality. - use murmur3 hash instead of jenkins1: faster and less collisions. - make some error messages a bit more clear, for example with path truncation. - some small cleanups, move printutf8pad to util.
2016-02-27check <author><name> tag case-insensitively, just like the restHiltjo Posthuma
2016-02-27consistency: check snprintf result == -1Hiltjo Posthuma
2016-02-27remove some unneeded checksHiltjo Posthuma
2016-02-26mention ISC in README.xml, not MITHiltjo Posthuma
2016-02-26clarify LICENSE (short title), mention ISC in README, not MITHiltjo Posthuma
2016-02-01sfeed_tail: tune memory consumption down a bit, tested with a file with ↵Hiltjo Posthuma
10,000,000 lines (50MB)
2016-01-31Add missing stdint headerQuentin Rameau
2016-01-31Revert "sfeed: realloc, faster near pow 2 bufsiz"Hiltjo Posthuma
This reverts commit 5e43bd658e578ced54f6065e95f6efb4892e114c. It is a neat bit trick, but it doesn't matter much in thiscase and it's less readable and possibly less portable.
2016-01-31sfeed_opml_import: fix compatHiltjo Posthuma
2016-01-31sfeed: realloc, faster near pow 2 bufsizHiltjo Posthuma
2016-01-31code-styleHiltjo Posthuma
2016-01-31add sfeed_tail (test), might be removed again laterHiltjo Posthuma
fix Makefile (compat)
2016-01-31sfeed_update: fix issue with merging failed feedsHiltjo Posthuma
When fetching a feed failed and its temporary file was stored (filesize=0) it would still be merged with the (possible) old file. This updated the modification time which would be used in the next poll (If-Modified-Since). The solution is to check if the file is non-empty and only then merge, this is still not 100% fool-proof, but much better.
2016-01-31sfeed_update: don't try to sort on feedname field, it was removedHiltjo Posthuma
2016-01-31sfeed_frames.1: add a note about security considerationsHiltjo Posthuma
2016-01-31always add strlcpy, strlcat, remove COMPAT #ifdefHiltjo Posthuma
The overhead for OpenBSD is minimal. I will periodically sync from OpenBSD libc.
2016-01-31sfeedrc(5): add initial documentation for sfeedrc configuration formatHiltjo Posthuma
2016-01-31README: small improvements and rewordingsHiltjo Posthuma
2016-01-31LICENSE: relicense from MIT to ISC, bump year to 2016Hiltjo Posthuma
2015-10-05sfeed_mbox: do host lookup and current time once at startup, not per feedHiltjo Posthuma
2015-10-04sfeed: fix ctype functions againHiltjo Posthuma
2015-10-04sfeed_mbox: small cleanup, move label so check for NUL isnt neededHiltjo Posthuma
2015-10-04portability: dont use HOST_NAME_MAX, just use 256 as maximumHiltjo Posthuma
2015-10-02sfeed: fix escape of backslash, simplifyHiltjo Posthuma