package catalogue // RootNever is what a user resource's `root` says of an account that must never become root without a // person (novox/hq ADR 0266); the node-engine judges it. const RootNever = "never" // accountHomeOf is where an account's home is: what was stored, or the derived default — /root for // root, /home/ otherwise. The one place the default is written, so a fact and the store // cannot disagree about it. func accountHomeOf(account, home string) string { if home != "" { return home } if account == "root" { return "/root" } return "/home/" + account }