Files
termux-packages/root-packages/gocryptfs/gocryptfs.patch
2025-07-19 23:40:40 +00:00

23 lines
774 B
Diff

--- a/main.go
+++ b/main.go
@@ -133,7 +133,7 @@ func main() {
// mount(1) unsets PATH. Since exec.Command does not handle this case, we set
// PATH to a default value if it's empty or unset.
if os.Getenv("PATH") == "" {
- os.Setenv("PATH", "/usr/sbin:/usr/bin:/sbin:/bin")
+ os.Setenv("PATH", "@TERMUX_PREFIX@/bin")
}
// Show microseconds in go-fuse debug output (-fusedebug)
log.SetFlags(log.Lmicroseconds)
--- a/mount.go
+++ b/mount.go
@@ -512,7 +512,7 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server {
func haveFusermount2() bool {
path, err := exec.LookPath("fusermount")
if err != nil {
- path = "/bin/fusermount"
+ path = "@TERMUX_PREFIX@/bin/fusermount"
}
cmd := exec.Command(path, "-V")
var out bytes.Buffer