}
if (!noauth && (status = mr_auth("blanche"))) {
- com_err(whoami, status, "unable to authenticate to Moira");
- com_err(whoami, 0,
- " Try the -noauth flag if you don't need authentication");
- exit(2);
+ if (status == MR_USER_AUTH)
+ com_err(whoami, status, "");
+ else {
+ com_err(whoami, status, "unable to authenticate to Moira");
+ com_err(whoami, 0,
+ " Try the -noauth flag if you don't need authentication");
+ exit(2);
+ }
}
/* display list info if requested to */