Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-10 | remove cast of unused variables | Hiltjo Posthuma | |
2016-03-10 | Makefile: define CPPFLAGS once, fix typo | Hiltjo Posthuma | |
2016-03-08 | Makefile: also clean util and xml object files | Hiltjo Posthuma | |
2016-03-04 | remove optimization with no effect, makes the code cleaner | Hiltjo Posthuma | |
2016-03-04 | sfeed_frames: use S_IR* names (portability), respect umask | Hiltjo Posthuma | |
use 0777 and 0666 permissions, it will respect the process umask (generally 0022), so 0755 and 0644 effectively. | |||
2016-03-04 | sfeed_frames: use mkdir and check errno EEXIST | Hiltjo Posthuma | |
no need to stat and then mkdir, this is a (theoretical) race-condition too. | |||
2016-03-02 | sfeed: no need to call strlen, we know the length already | Hiltjo Posthuma | |
2016-02-29 | sfeed_frames: no need to read from index files, mode "w+b" to "wb" | Hiltjo Posthuma | |
2016-02-29 | sfeed_frames: whoops, set file permissions (else its 0000) | Hiltjo Posthuma | |
2016-02-28 | sfeed_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-28 | sfeed_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-28 | sfeed_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-28 | use prime as seed for murmur3 seed (doesnt matter much) | Hiltjo Posthuma | |
2016-02-28 | null-terminate line at newline from getline() | Hiltjo Posthuma | |
2016-02-28 | util: simplify encodehex, use inline | Hiltjo Posthuma | |
2016-02-28 | sfeed_tail: terminate line at newline, small cleanup | Hiltjo Posthuma | |
2016-02-28 | sfeed_tail: fix pledge when opening files | Hiltjo Posthuma | |
2016-02-27 | config.mk: disable pledge by default, only OpenBSD 5.9 (unreleased) supports it | Hiltjo Posthuma | |
2016-02-27 | simplify build and fix linking for strlcat.o and strlcpy.o | Hiltjo Posthuma | |
separate util source (util.c, strlcat.c, strlcpy.c) to libutil.a separate xml source (xml.c) to libxml.a | |||
2016-02-27 | fix missing includes for uint32_t and time_t | Hiltjo Posthuma | |
2016-02-27 | add util for pledge | Hiltjo Posthuma | |
2016-02-27 | reference sfeedrc(5) in manpages | Hiltjo Posthuma | |
2016-02-27 | sfeed_tail | Hiltjo Posthuma | |
2016-02-27 | various improvements | Hiltjo 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-27 | check <author><name> tag case-insensitively, just like the rest | Hiltjo Posthuma | |
2016-02-27 | consistency: check snprintf result == -1 | Hiltjo Posthuma | |
2016-02-27 | remove some unneeded checks | Hiltjo Posthuma | |
2016-02-26 | mention ISC in README.xml, not MIT | Hiltjo Posthuma | |
2016-02-26 | clarify LICENSE (short title), mention ISC in README, not MIT | Hiltjo Posthuma | |
2016-02-01 | sfeed_tail: tune memory consumption down a bit, tested with a file with ↵ | Hiltjo Posthuma | |
10,000,000 lines (50MB) | |||
2016-01-31 | Add missing stdint header | Quentin Rameau | |
2016-01-31 | Revert "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-31 | sfeed_opml_import: fix compat | Hiltjo Posthuma | |
2016-01-31 | sfeed: realloc, faster near pow 2 bufsiz | Hiltjo Posthuma | |
2016-01-31 | code-style | Hiltjo Posthuma | |
2016-01-31 | add sfeed_tail (test), might be removed again later | Hiltjo Posthuma | |
fix Makefile (compat) | |||
2016-01-31 | sfeed_update: fix issue with merging failed feeds | Hiltjo 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-31 | sfeed_update: don't try to sort on feedname field, it was removed | Hiltjo Posthuma | |
2016-01-31 | sfeed_frames.1: add a note about security considerations | Hiltjo Posthuma | |
2016-01-31 | always add strlcpy, strlcat, remove COMPAT #ifdef | Hiltjo Posthuma | |
The overhead for OpenBSD is minimal. I will periodically sync from OpenBSD libc. | |||
2016-01-31 | sfeedrc(5): add initial documentation for sfeedrc configuration format | Hiltjo Posthuma | |
2016-01-31 | README: small improvements and rewordings | Hiltjo Posthuma | |
2016-01-31 | LICENSE: relicense from MIT to ISC, bump year to 2016 | Hiltjo Posthuma | |
2015-10-05 | sfeed_mbox: do host lookup and current time once at startup, not per feed | Hiltjo Posthuma | |
2015-10-04 | sfeed: fix ctype functions again | Hiltjo Posthuma | |
2015-10-04 | sfeed_mbox: small cleanup, move label so check for NUL isnt needed | Hiltjo Posthuma | |
2015-10-04 | portability: dont use HOST_NAME_MAX, just use 256 as maximum | Hiltjo Posthuma | |
2015-10-02 | sfeed: fix escape of backslash, simplify | Hiltjo Posthuma | |
2015-10-02 | sfeed_plain: remove some spaces for slightly more screen space :) | Hiltjo Posthuma | |
2015-10-02 | dont used deprecated timegm, use mktime with TZ set to UTC | Hiltjo Posthuma | |
this also makes it compile on NetBSD |