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:
Alexander Neumann
2015-05-14 23:13:00 +02:00
parent 4e5094b7c9
commit d42242556b
2 changed files with 8 additions and 6 deletions

View File

@@ -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