head	1.3;
access;
symbols
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2008.03.16.22.35.35;	author pav;	state dead;
branches;
next	1.2;

1.2
date	2003.04.15.19.39.53;	author fjoe;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.22.15.36.25;	author trevor;	state Exp;
branches;
next	;


desc
@@


1.3
log
@- Update to 2.1
- Assume maintainership

PR:		ports/121678
Submitted by:	Ganael LAPLANCHE <ganael.laplanche@@martymac.com>
@
text
@--- input.c.orig	Thu Jan 14 03:19:14 1999
+++ input.c	Fri Feb 28 13:48:38 2003
@@@@ -60,11 +60,27 @@@@
 #error "Shadow and PAM don't mix!"
 #endif
 
+#if (__FreeBSD__ == 0)            /* 1.0 did not define __FreeBSD__ */
+#define __FreeBSD_version 199401
+#elsif __FreeBSD__ == 1          /* 1.1 defined it to be 1 */
+#define __FreeBSD_version 199405
+#else                           /* 2.0 and higher define it to be 2 */
+#include <osreldate.h>          /* and this works */
+#endif
+
 #include <security/pam_appl.h>
+#if defined (__FreeBSD_version) && (__FreeBSD_version > 500030)
+#include <security/openpam.h>
+#else
 #include <security/pam_misc.h>
+#endif
 
 static struct pam_conv PAM_conversation = {
+#if defined (__FreeBSD_version) && (__FreeBSD_version > 500030)
+    openpam_ttyconv,
+#else
     &misc_conv,
+#endif
     NULL
 };
 
@@@@ -291,7 +307,7 @@@@
   setuid(getuid());
   setgid(getgid());
 
-  sprintf(prompt, "%s's password: ", username);
+  snprintf(prompt, 99, "%s's password: ", username);
 #endif /* !USE_PAM */
 }
 
@


1.2
log
@Fix build on 5.x (maintainer timeout).

PR:		48772
Submitted by:	Sergey A. Osokin <osa@@FreeBSD.org.ru>
@
text
@@


1.1
log
@new port of vlock 1.3, a utility to lock a console until a password
is entered

PR:		21834
Submitted by:	George Reid <services@@nevernet.net>
@
text
@d1 31
a31 3
--- input.c.orig	Wed Jan 13 16:19:14 1999
+++ input.c	Sun Oct 22 08:22:42 2000
@@@@ -291,7 +291,7 @@@@
@

