-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-7.7
This issue is similar to previously reported issue at
https://bugzilla.redhat.com/show_bug.cgi?id=1520906
[make hostname in login(1) prompt optional]
The problem is that to be complete, it would also require
agetty to also understand /etc/login.defs LOGIN_PLAIN_PROMPT
value. Otherwise, it would be required some wrapper passing
--nohostname
The patch would not be so trivial, as would most likely require
a copy of login-utils/logindefs.c added to term-utils and make
agetty use it. Once added, the pseudo patch would be:
term-utils/agetty.c:
"""
printf(_("Hint: %s\n\n"), hint);
}
}
#endif /* KDGKBLED */
+ if (!(op->flags & F_NOHSTNAME) &&
+ (getlogindefs_bool("LOGIN_PLAIN_PROMPT", 0) == 1)
+ op->flags |= F_NOHSTNAME;
if ((op->flags & F_NOHOSTNAME) == 0) {
char *hn = xgethostname();
"""
- external trackers