Commit Graph

5 Commits

Author SHA1 Message Date
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
827ad9943c sourcecode: udpate building stuff.
- Remove `set -x` from install.sh
- Add cflags to Makefile
2020-07-07 17:34:18 -03:00
9030040f41 Check if (un)mounted in sshfs-map. 2020-06-03 14:31:41 -03:00
4c7f8b18f6 Support empty lines and comments in sshfs-map. 2020-06-03 13:59:48 -03:00
d2e04eccf4 Create sshfs-map. 2020-06-03 13:50:50 -03:00