forked from TrueCloudLab/restic
e1f6bbac9f
Create separate function to convert user ID / group ID of a user to integer. Windows is a stub, since this doesn't work on Windows (uid/gid is not a number).
10 lines
184 B
Go
10 lines
184 B
Go
package restic
|
|
|
|
import (
|
|
"os/user"
|
|
)
|
|
|
|
// uidGidInt always returns 0 on Windows, since uid isn't numbers
|
|
func uidGidInt(u user.User) (uid, gid uint32, err error) {
|
|
return 0, 0, nil
|
|
}
|