mirror of
https://github.com/restic/restic.git
synced 2026-11-18 22:58:07 +00:00
Create uid/gid convertion function.
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).
This commit is contained in:
1 parent
0e7d0d8dba
commit
e1f6bbac9f
4 files changed
+39
-20
No files matched your search
@@ -0,0 +1,10 @@
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user