fusermount: drop privileges for chdir()
authorSam Huffman <40582525+samh-sifive@users.noreply.github.com>
Fri, 8 Mar 2019 21:26:31 +0000 (13:26 -0800)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 8 Mar 2019 21:26:31 +0000 (21:26 +0000)
commit774eb66fc1eb006b601f3890958f02e7b90575ad
treec9c116b5bd24900b14dd8f418e9a6ac654a58998
parent1b7d2b886265daa5527f487c1b6e86d006574ac4
fusermount: drop privileges for chdir()

cd to mountpoint's parent directory using unprivileged rather than
privileged access. This is to ensure that unmount works on mountpoints
where root may not have privileged access.

Fixes: #376
util/fusermount.c