SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Fix: Loosing environment variables at StartProcess
thephoenixofthevoid8d70ba2eaab3
diff --git a/weed/command/fuse.go b/weed/command/fuse.goindex b66487bdff..3949d8f70d 100644--- a/weed/command/fuse.go+++ b/weed/command/fuse.go@@ -195,7 +195,9 @@ func runFuse(cmd *Command, args []string) bool {arg0 := os.Args[0]argv := append(os.Args, "-o", "child")- attr := os.ProcAttr{}+ attr := os.ProcAttr{}+ attr.Env = os.Environ()+child, err := os.StartProcess(arg0, argv, &attr)if err != nil {@@ -211,11 +213,6 @@ func runFuse(cmd *Command, args []string) bool {return true}- // I don't know why PATH environment variable is lost- if err := os.Setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"); err != nil {- panic(fmt.Errorf("setenv: %s", err))- }-// just call "weed mount" commandreturn runMount(cmdMount, []string{})}