head 1.2; access; symbols pkgsrc-2013Q2:1.1.0.14 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.12 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.10 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.8 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.6 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.4 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.2 pkgsrc-2011Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2013.07.02.06.40.56; author wiz; state dead; branches; next 1.1; commitid lvcCshs8CnhjwRVw; 1.1 date 2011.12.09.13.51.56; author hans; state Exp; branches; next ; desc @@ 1.2 log @Update to 5.0.7: No changelog found. @ text @$NetBSD: patch-consio.cpp,v 1.1 2011/12/09 13:51:56 hans Exp $ Use getpassphrase(3C) on SunOS to allow passwords longer than 8 chars. --- consio.cpp.orig 2011-03-02 08:43:12.000000000 +0100 +++ consio.cpp 2011-12-09 14:38:05.903683508 +0100 @@@@ -129,6 +129,8 @@@@ void GetPasswordText(wchar *Str,uint Max char StrA[MAXPASSWORD]; #if defined(_EMX) || defined(_BEOS) || defined(__sparc) || defined(sparc) || defined (__VMS) fgets(StrA,ASIZE(StrA)-1,stdin); +#elif defined(__sun) + strncpyz(StrA,getpassphrase(""),ASIZE(StrA)); #else strncpyz(StrA,getpass(""),ASIZE(StrA)); #endif @ 1.1 log @Use getpassphrase() on SunOS to allow passwords longer than 8 chars. @ text @d1 1 a1 1 $NetBSD$ @