diff --git a/snapshot.go b/snapshot.go index b1477c316..1693d2b75 100644 --- a/snapshot.go +++ b/snapshot.go @@ -76,16 +76,12 @@ func (sn *Snapshot) fillUserInfo() error { } sn.Username = usr.Username - uid, err := strconv.ParseInt(usr.Uid, 10, 32) - if err != nil { - return err - } + // We ignore the error. On Windows Uid is not a number + uid, _ := strconv.ParseInt(usr.Uid, 10, 32) sn.UID = uint32(uid) - gid, err := strconv.ParseInt(usr.Gid, 10, 32) - if err != nil { - return err - } + // We ignore the error. On Windows Gid is not a number + gid, _ := strconv.ParseInt(usr.Gid, 10, 32) sn.GID = uint32(gid) return nil