mirror of
https://github.com/octoleo/restic.git
synced 2024-11-02 11:46:36 +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
|
|
}
|