Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-04-27 | compatiblity with browsers: use numeric entity for apos | Hiltjo Posthuma | |
this entity is XHTML, it is not supported by some (older) browsers. | |||
2016-08-06 | sfeed_frames, sfeed_html: don't use HTML tables | Hiltjo Posthuma | |
reasons: - HTML table rendering is extremely slow (invalidate because of resizing cells etc). - whitespace wrapping does not work properly in ancient browsers, links(1). | |||
2016-08-06 | add USE_PLEDGE, remove pledge dummy function | Hiltjo Posthuma | |
2016-04-12 | sfeed_frames: make content filename more unique: use UNIX timestamp in title | Hiltjo Posthuma | |
this makes sure if an item has the same title but is posted or updated at a different time it will not overwrite the file. | |||
2016-04-10 | sfeed_frames: dont make title of content a link if its empty | Hiltjo Posthuma | |
2016-04-10 | remove basename, just use last part of the path... | Hiltjo Posthuma | |
... as a bonus it also saves an allocation. | |||
2016-03-29 | add time parsing to sfeed itself, remove time field | Hiltjo Posthuma | |
- less overhead (we only need GMT time) so no setenv("TZ", ...) tzset() crap. - timezone format (for example %z in strptime) is non-standard, this will add some lines of code and some complexity to our code though, but the trade-off is worth it imho. | |||
2016-03-20 | sfeed_frames: also XML encode formatted time (just in case) | 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-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 | null-terminate line at newline from getline() | 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 | remove some unneeded checks | Hiltjo Posthuma | |
2015-08-16 | code-style + no need to zero static variables | Hiltjo Posthuma | |
2015-08-16 | code-style, wrap some lines, etc | Hiltjo Posthuma | |
2015-08-07 | util: strtotime: stricter time parsing | Hiltjo Posthuma | |
as input: an empty string or non-digit characters are digits are considered an error now. Still, for the format tools output the formatted time string as time_t 0 on a parse error. | |||
2015-08-02 | sfeed_frames: wrap plain-text, encode as XML/HTML 2.0 | Hiltjo Posthuma | |
2015-08-02 | sfeed_frames: limit titles and feednames to 128 chars for filenames | Hiltjo Posthuma | |
This prevents unnecessary path-truncation in some cases, with the side-effect it can overwrite items with the same title more often. We handle path truncation as a fatal error, so this was annoying. | |||
2015-08-02 | sfeed_frames: normalizepath: dont start with replaced -, just ignore | Hiltjo Posthuma | |
2015-08-02 | util: simplify parseline() and check t for strtotime(). | Hiltjo Posthuma | |
2015-08-02 | refactor print, decodefield into xmlencode | Hiltjo Posthuma | |
... put specific formatting-logic per program (printcontent()). | |||
2015-07-31 | Various improvements | Hiltjo Posthuma | |
- Only escape characters in "content" field, these can contain newlines. - Trim newlines and tabs, etc from the title, id and author fields. - Make decodefield, xmlencode functions easier to "chain" without allocatting new buffers. - Move printutf8pad from util (only used by sfeed_plain) to sfeed_plain. - Update README, still need to update the man-page and improve the documentation in general. - Code cleanup. | |||
2015-07-30 | check for time() failure | Hiltjo Posthuma | |
2015-07-29 | sfeed_frames: style: sys includes at top | Hiltjo Posthuma | |
2015-07-28 | sfeed_frames, sfeed_html: add space before amount of new items | Hiltjo Posthuma | |
2015-07-28 | improve code-style and consistency | Hiltjo Posthuma | |
2015-06-21 | sfeed_html, sfeed_frames: escape name | Hiltjo Posthuma | |
2015-06-21 | improvements | Hiltjo Posthuma | |
2015-05-24 | sfeed_frames and util cleanup | Hiltjo Posthuma | |
- remove xerr and xerrx, assume the OS closes and flushes file descriptors on OS process exit. - move esnprintf, printcontent to util. | |||
2015-05-16 | sfeed_frames: show mkdir error string, shorter function name normalizepath() | Hiltjo Posthuma | |
2015-01-05 | remove some TODOs, style | Hiltjo Posthuma | |
2015-01-05 | sfeed_frames: rename makepathname -> normalizepathname and add a comment | Hiltjo Posthuma | |
2015-01-05 | sfeed_frames: improve error message information | Hiltjo Posthuma | |
2015-01-05 | sfeed_frames: check truncation for path | Hiltjo Posthuma | |
2015-01-05 | sfeed_frames: cleanup | Hiltjo Posthuma | |
2015-01-05 | sfeed_frames: improve makepathname, cleanup | Hiltjo Posthuma | |
2015-01-05 | add and use BSD queue.h, cleanup | Hiltjo Posthuma | |
2015-01-04 | sfeed_frames: always error if fopen failed | Hiltjo Posthuma | |
2015-01-04 | snprintf() truncation checks | Hiltjo Posthuma | |
2015-01-03 | time fixes | Hiltjo Posthuma | |
2015-01-02 | sfeed_frames: get rid of atexit() | Hiltjo Posthuma | |
2015-01-02 | cleanup | Hiltjo Posthuma | |
- dont free at end (not needed in our case). - use 0 and 1 instead of EXIT_SUCCESS, EXIT_FAILURE. - use err (from err.h) instead of custom die(). | |||
2014-11-11 | code style, use actual column width of char | Hiltjo Posthuma | |
2014-11-11 | remove fileexists function | Hiltjo Posthuma | |
2014-11-11 | set FILE* pointers to NULL | Hiltjo Posthuma | |