mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 03:18:55 +00:00
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).
11 lines
184 B
Go
11 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
|
|
}
|