Implement user flag offset

This commit is contained in:
lash 2023-04-16 13:34:20 +01:00
parent 2aa5214b2b
commit 1e80d37b73
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ import (
) )
const ( const (
USERFLAG_IDENTIFIED = iota + 8 USERFLAG_IDENTIFIED = iota + state.FLAG_USERSTART
USERFLAG_HAVENAME USERFLAG_HAVENAME
USERFLAG_HAVEEMAIL USERFLAG_HAVEEMAIL
) )
@ -44,6 +44,7 @@ func newProfileResource(st *state.State, rs *resource.FsResource) *profileResour
} }
func(pr *profileResource) checkEntry() error { func(pr *profileResource) checkEntry() error {
log.Printf("%v %v", USERFLAG_IDENTIFIED, USERFLAG_HAVENAME)
if pr.haveEntered { if pr.haveEntered {
return nil return nil
} }

View File

@ -7,6 +7,7 @@ const (
FLAG_DIRTY FLAG_DIRTY
FLAG_WAIT FLAG_WAIT
FLAG_LOADFAIL FLAG_LOADFAIL
FLAG_USERSTART = 8
) )
func IsWriteableFlag(flag uint32) bool { func IsWriteableFlag(flag uint32) bool {