mirror of
https://github.com/restic/restic.git
synced 2025-10-10 05:54:25 +00:00
Fix restic for i386
Some functions aren't implemented on Linux/i386, e.g. user.LookupId() and user.Current(), so ignore these errors.
This commit is contained in:
@@ -71,10 +71,10 @@ func (sn Snapshot) ID() backend.ID {
|
||||
func (sn *Snapshot) fillUserInfo() error {
|
||||
usr, err := user.Current()
|
||||
if err != nil {
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
|
||||
sn.Username = usr.Username
|
||||
|
||||
uid, err := strconv.ParseInt(usr.Uid, 10, 32)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user