dotfiles/sourcecode/sshfs-map
É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
..
.gitignore Create sshfs-map. 2020-06-03 13:50:50 -03:00
Makefile sourcecode: udpate building stuff. 2020-07-07 17:34:18 -03:00
map Support empty lines and comments in sshfs-map. 2020-06-03 13:59:48 -03:00
sshfs-map.c sshfs-map: fix segfaults under musl. 2020-07-07 17:35:21 -03:00
sshfs-map.h Create sshfs-map. 2020-06-03 13:50:50 -03:00