# safemount
We have to jump through multiple hoops in shell scripts to ensure that our scripts handle special characters such as space, hyphen etc. properly. A number of security vulnerabilities exist because of mishandling of these characters.
However, these special characters, while important for GUI are not a necessity for command line. The idea of this library is to provide a FUSE filesystem that mounts a given directory under a mount point such that all the special characters are URL encoded. We include - in the list of characters that are encoded. Further, we also remove . and .. from the directory listing.
With this, the shell scripts can assume that none of the directory or file names contain special characters.
The usage is as follows:
` python3 -m pip install fusepy python3 -m safemount ./mydir ./mntpoint `
See also: 1. https://dwheeler.com/essays/filenames-in-shell.html 2. https://dwheeler.com/essays/fixing-unix-linux-filenames.html 3. https://lwn.net/Articles/325304/ 4. https://lwn.net/Articles/686789/
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file safemount-0.6.tar.gz.
File metadata
- Download URL: safemount-0.6.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32255b9252f65ce0abf609f7cc7b6cf61b214fde490f2f59ca8d0ccffe6ef450
|
|
| MD5 |
2e4ff518dbe2fe25bffc7e8ff9936304
|
|
| BLAKE2b-256 |
49d4b365ff17a769006fc14c0c791dde3526cf5dde0dd8726769716d4f233576
|