Hello community, here is the log from the commit of package pwdutils checked in at Fri May 19 16:53:58 CEST 2006. -------- --- pwdutils/pwdutils.changes 2006-05-18 16:11:47.000000000 +0200 +++ pwdutils/pwdutils.changes 2006-05-19 15:46:25.000000000 +0200 @@ -1,0 +2,5 @@ +Fri May 19 15:46:19 CEST 2006 - kssingvo@suse.de + +- added option -H to suppress hostname (bugzilla#175376) + +------------------------------------------------------------------- New: ---- pam_login-3.31-suppress_hostname.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pwdutils.spec ++++++ --- /var/tmp/diff_new_pack.pgKFON/_old 2006-05-19 16:53:53.000000000 +0200 +++ /var/tmp/diff_new_pack.pgKFON/_new 2006-05-19 16:53:53.000000000 +0200 @@ -17,7 +17,7 @@ Group: System/Base Autoreqprov: on Version: 3.0.7.1 -Release: 17 +Release: 18 Summary: Utilities to Manage User and Group Accounts PreReq: grep /bin/cp /bin/mv Requires: pam-modules @@ -41,6 +41,7 @@ Patch2: bugzilla-148065.patch Patch3: pwdutils-ldap-rfc2307bis.diff Patch4: pam_login-3.31.diff +Patch5: pam_login-3.31-suppress_hostname.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -72,6 +73,7 @@ pushd ../pam_login-* %patch2 -p0 %patch4 +%patch5 -p1 popd %patch3 @@ -209,6 +211,8 @@ %{_libdir}/pwdutils/liblog_audit.so.1* %changelog -n pwdutils +* Fri May 19 2006 - kssingvo@suse.de +- added option -H to suppress hostname (bugzilla#175376) * Thu May 18 2006 - schwab@suse.de - Don't strip binaries. * Mon Mar 27 2006 - kukuk@suse.de ++++++ pam_login-3.31-suppress_hostname.patch ++++++ diff -ru pam_login-3.31/src/login.1 pam_login-3.31.devel/src/login.1 --- pam_login-3.31/src/login.1 2005-08-17 11:59:14.000000000 -0400 +++ pam_login-3.31.devel/src/login.1 2006-05-05 13:37:45.000000000 -0400 @@ -20,6 +20,8 @@ .BR \-h .IR host ] [ +.BR \-H +] [ .BR \-f .IR username ] @@ -121,6 +123,13 @@ .B login so that it may be placed in utmp and wtmp. Only the superuser may use this option. +.TP +.B \-H +Used by other servers (i.e., +.BR telnetd (8)) +to tell +.B login +that printing the hostname should be suppressed in the login: prompt. .SH "SPECIAL ACCESS RESTRICTIONS" The file diff -ru pam_login-3.31/src/login.c pam_login-3.31.devel/src/login.c --- pam_login-3.31/src/login.c 2006-05-05 13:26:32.000000000 -0400 +++ pam_login-3.31.devel/src/login.c 2006-05-05 13:28:06.000000000 -0400 @@ -30,6 +30,7 @@ * login -h hostname (for telnetd, etc.) * login -f name (for pre-authenticated login: datakit, xterm, etc.) * login -p (don't destroy environment) + * login -H (suppress printing hostname) */ #ifdef HAVE_CONFIG_H @@ -139,6 +140,8 @@ fputs (_(" -h hostname Name of the remote host for umtp/wtmp\n"), stdout); fputs (_(" -f name Skip a second login authentication\n"), stdout); + fputs (_(" -H Do not print hostname before login: prompt\n"), + stdout); fputs (_(" --help Give this help list\n"), stdout); fputs (_(" --usage Give a short usage message\n"), stdout); fputs (_(" --version Print program version\n"), stdout); @@ -372,8 +375,11 @@ char *ret; *cp++ = '\n'; - cp = stpcpy (cp, thishost); - cp = stpcpy (cp, " login: "); + if (thishost[0]) { + cp = stpcpy (cp, thishost); + *cp++ = ' '; + } + cp = stpcpy (cp, "login: "); ret = strdup (buffer); @@ -504,7 +510,7 @@ {NULL, 0, NULL, '\0'} }; - c = getopt_long (argc, argv, "fh:p", long_options, &option_index); + c = getopt_long (argc, argv, "fh:pH", long_options, &option_index); if (c == (-1)) break; switch (c) @@ -570,6 +576,9 @@ case 'p': pflag = 1; break; + case 'H': + thishost[0] = '\0'; + break; case '\253': print_help (); return 0; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...
participants (1)
-
root@suse.de