mirror of
https://github.com/minio/minio.git
synced 2025-04-14 00:09:52 -04:00
Merge pull request #1106 from harshavardhana/support
pkg/user: Support 32bit darwin.
This commit is contained in:
commit
4e328d7b2c
@ -39,7 +39,8 @@ func Current() (*user.User, error) {
|
||||
}
|
||||
return &user.User{Uid: "0", Gid: "0", Username: "root", Name: "root", HomeDir: wd}, nil
|
||||
}
|
||||
if runtime.GOARCH == "386" && runtime.GOOS == "linux" {
|
||||
if runtime.GOARCH == "386" {
|
||||
if runtime.GOOS == "linux" || runtime.GOOS == "darwin" {
|
||||
return &user.User{
|
||||
Uid: strconv.Itoa(os.Getuid()),
|
||||
Gid: strconv.Itoa(os.Getgid()),
|
||||
@ -48,6 +49,7 @@ func Current() (*user.User, error) {
|
||||
HomeDir: os.Getenv("HOME"),
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
user, e := user.Current()
|
||||
if e != nil {
|
||||
return nil, e
|
||||
|
Loading…
x
Reference in New Issue
Block a user