Commit Graph

7 Commits

Author SHA1 Message Date
Érico Rolim 937e1b8e82 sourcecode: simplify makefiles. 2020-09-01 00:20:19 -03:00
Érico Rolim 98a15fa859 sourcecode: create enter-chroot.
Written in C, is a setid program and does the job of launch-chroot,
which is being retired.
2020-07-25 01:35:52 -03:00
Érico Rolim fed9677104 sshfs-map: fix segfaults under musl.
- line and line_size should be reset each loop, otherwise getline() will
use a freed memory address. This worked under glibc, but broke under
musl for some reason. More specifically, it would segfault when running
setmntent for the second time.

- General clean-up: is_mounted checks shouldn't call continue, otherwise
they will skip the clean-up routines. This would be a memory leak, but
not a functionality issue. The calls to continue were probably the
reason that the program didn't segfault when running for a consecutive
time, after the first map had already been mounted.

- Move printf calls to outside fork block.
2020-07-07 17:35:21 -03:00
Érico Rolim 827ad9943c sourcecode: udpate building stuff.
- Remove `set -x` from install.sh
- Add cflags to Makefile
2020-07-07 17:34:18 -03:00
Érico Rolim 9030040f41 Check if (un)mounted in sshfs-map. 2020-06-03 14:31:41 -03:00
Érico Rolim 4c7f8b18f6 Support empty lines and comments in sshfs-map. 2020-06-03 13:59:48 -03:00
Érico Rolim d2e04eccf4 Create sshfs-map. 2020-06-03 13:50:50 -03:00