Commits
- Commit:
4b877649af0f6237f46cf7d033fc896aa7cf8ca6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix sandbox wrt XDG-style directories
- 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:
798e1c954749cdd5b3042212050c8ddae75a9c52
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync changelog
- Commit:
874e7af5fb7b5ffc6981d53624c40c9c12b49ae8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix patch syntax highlighting wrt multiple headers
- Commit:
328e791598d3c671e2bd13164515d8748f9aaf27
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort includes
- Commit:
d34a1873bb66abbbb97034f1674451d9d47b8e63
- From:
- Omar Polo <op@omarpolo.com>
- Date:
spend a few more words describing on how the safe mode works
- 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:
55ccd6d096be150da4ea2ad1d4aa6bd60059fb0f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
propagate the safe_mode to the children
- Commit:
5d7c642a6671900ac3079d2dab6a28efa810d7bb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't acquire the file lock in safe_mode
- Commit:
335cfaecaa61dab5171f9bdada6b5c1e934e73ac
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mention -C in usage()
- Commit:
f2d29984508f30a77d5ebe754593e5fe3f6076f4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync
- Commit:
d09716535c4c4bc66f0d7c84a98e4cc5a5893b84
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a safe/sandbox mode
When enabled with the -S (or --safe) flag, prevent telescope from
writing files to the disk.