Here's another fix, one that can go in right now:
Don't echo the password on sparc/sparc64.

Presumably this is another instance of the time-honored abuse of
__sparc to check for SunOS.

Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/unrar/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- Makefile    8 Sep 2011 11:13:30 -0000       1.53
+++ Makefile    7 Apr 2012 23:04:21 -0000
@@ -11,6 +11,7 @@ COMMENT=      extract, list, and test RAR arc
 
 PKGNAME=       unrar-4.00
 EPOCH=         1
+REVISION=      0
 DISTNAME=      unrarsrc-4.0.7
 CATEGORIES=    archivers
 
Index: patches/patch-consio_cpp
===================================================================
RCS file: patches/patch-consio_cpp
diff -N patches/patch-consio_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-consio_cpp    7 Apr 2012 23:04:21 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- 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));
-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to