Commits
- Commit:
fb3d08c1f0590014fcb4230feb8fda8fa056773e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move declarations from telescope.h in fs.h
and while there also publish various path. It's easier and better to
have all of them exported from here instead of hardcoding them in other
files (such as sandbox.c)
- Commit:
444dad86beaaa60bd96790c7097aa66bb331e645
- From:
- Omar Polo <op@omarpolo.com>
- Date:
dirname fix
dirname(3) is really one of the worst part of POSIX, portability-wise.
Implementors can decide to either modify the passed string or return a
pointer to an internal storage.
The current code fails when dirname returns a pointer to an internal
storage because between the strcmp call and the mkdir we go into a
recursion that can modify `path'. We can't use copy either because
*some* implementation of dirname would have changed that.
How to escape from this hell? Take yet another copy of the path!
- Commit:
eb2ed626f304f3f1e00711c20d76ecfd8dcc5ce7
- From:
- Andrea Feletto <andrea@andreafeletto.com>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
support xdg basedir
Use XDG-compliant paths unless ~/.telescope already exists. Provide a
script to migrate to XDG-style directory for users who wish to do so.
- Commit:
633bf6d87d247b0fddf6259b176f491c3f736318
- From:
- Omar Polo <op@omarpolo.com>
- Date:
delete old (and wrong) comment
it's been a while since we're using a lockfile to protect against
multiple telescope instances.
- Commit:
328e791598d3c671e2bd13164515d8748f9aaf27
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort includes
- Commit:
2b409042b17a5f12c9138df589881e336798f862
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ignore the crashed file if in safe_mode
During safe_mode the fs process shouldn't open or unlink the
crashed_file.
- Commit:
be97d6e6eed961ec5caf528306c94ffd55437328
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve crash detection
Create a file ~/.telescope/crashed on startup and unlink it on
shutdown. If it's present on startup, it means that last time we
crashed. It's like the ``dirty'' bit on filesystems to guard for
unproper unmounts.
- Commit:
24a681582d89feab2267fb50d4dd39a05612aaa1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve error reporting
- Commit:
5d43215b6f73e6a45da02d7868786eb84195163a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
redirect on directories without slash
- Commit:
5cbe17635e5b5884548a53bd3c09b401dbd15e51
- From:
- Omar Polo <op@omarpolo.com>
- Date:
skip "." (and ".." if in /)
- Commit:
65124267f8546533ef276a4658f63d856332aa3e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
generate directory listings
- Commit:
fb4dc49f8a649b71bbfd87471b6bfbc4ab22f67e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
handle IMSG_GET_FILE: serve local files
IMSG_GET_FILE handles a path to a local file. fs now behaves like
net, it sends a IMSG_GOT_CODE/META and optionally the file.
This also includes a bit of refactoring: the send_file function was
extracted from handle_get so it can be used in handle_get_file too.
- Commit:
786e6deb98e5c4050020215a479330250ed9736e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
always include compat.h first
- Commit:
56e7efb45b77fdf3a17848ae698aae27f554af7c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow about: pages to be locally overridden
- Commit:
b61717947970737f301781bb51a6bd06346a5e7b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
open about:crash if last time telescope crashed