don't echo the password on sparc/sparc64; ok sthen@

This commit is contained in:
naddy 2012-04-08 11:30:25 +00:00
parent 2b97537301
commit ade68cd88e
2 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.53 2011/09/08 11:13:30 jasper Exp $ # $OpenBSD: Makefile,v 1.54 2012/04/08 11:30:25 naddy Exp $
COMMENT= extract, list, and test RAR archives COMMENT= extract, list, and test RAR archives
@ -11,6 +11,7 @@ COMMENT= extract, list, and test RAR archives
PKGNAME= unrar-4.00 PKGNAME= unrar-4.00
EPOCH= 1 EPOCH= 1
REVISION= 0
DISTNAME= unrarsrc-4.0.7 DISTNAME= unrarsrc-4.0.7
CATEGORIES= archivers CATEGORIES= archivers

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-consio_cpp,v 1.1 2012/04/08 11:30:25 naddy Exp $
--- consio.cpp.orig Sun Apr 8 00:33:34 2012
+++ consio.cpp Sun Apr 8 00:33:48 2012
@@ -127,7 +127,7 @@ void GetPasswordText(wchar *Str,uint MaxLength)
SetConsoleMode(hConOut,ConOutMode);
#else
char StrA[MAXPASSWORD];
-#if defined(_EMX) || defined(_BEOS) || defined(__sparc) || defined(sparc) || defined (__VMS)
+#if defined(_EMX) || defined(_BEOS) || defined (__VMS)
fgets(StrA,ASIZE(StrA)-1,stdin);
#else
strncpyz(StrA,getpass(""),ASIZE(StrA));