torsocks prints "Failed to get capabilities of file" to stderr
Originally created by @segfault on #12091 (Redmine)
In 3.0~alpha1, torsocks always prints “Failed to get capabilities of file” to stderr, when used to execute a file on the FAT partition. This includes the programs we use a torsocks wrapper for, like git and wget. This can be quite annoying, especially when you want to use tab completion with git, which also results in the error message being printed.
The reason is that since torsocks 2.2.0, which is the version in Stretch, torsocks calls `getcap` on the file to be executed [1]. FAT does not support file capabilties, thus the error message.
[1] https://github.com/dgoulet/torsocks/blob/master/src/bin/torsocks.in#L147
Related issues
- Blocks #12205 (closed)