Don't call os.Setenv()

This commit is contained in:
x.zhou 2023-06-03 15:36:03 +08:00
parent 4e410df6e1
commit 8ea6111b0d
4 changed files with 14 additions and 8 deletions
pkg/mounter

View file

@ -44,7 +44,7 @@ func (s3fs *s3fsMounter) Mount(target, volumeID string) error {
args = append(args, "-o", fmt.Sprintf("endpoint=%s", s3fs.region))
}
args = append(args, s3fs.meta.MountOptions...)
return fuseMount(target, s3fsCmd, args)
return fuseMount(target, s3fsCmd, args, nil)
}
func writes3fsPass(pwFileContent string) error {