diff options
author | hans <hans@pkgsrc.org> | 2011-12-09 13:51:56 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2011-12-09 13:51:56 +0000 |
commit | 18afbebc547e109deddb5a5d1dbebbcd362df959 (patch) | |
tree | 8f3573a81b44eb333e8dd65375cca2d45ac16ce2 | |
parent | e218acd2a419193b3002d73ae947797d2ddc0763 (diff) | |
download | pkgsrc-18afbebc547e109deddb5a5d1dbebbcd362df959.tar.gz |
Use getpassphrase() on SunOS to allow passwords longer than 8 chars.
-rw-r--r-- | archivers/unrar/distinfo | 3 | ||||
-rw-r--r-- | archivers/unrar/patches/patch-consio.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/archivers/unrar/distinfo b/archivers/unrar/distinfo index e3f2402fd4a..d1e7acb01ef 100644 --- a/archivers/unrar/distinfo +++ b/archivers/unrar/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.40 2011/03/12 15:42:22 adam Exp $ +$NetBSD: distinfo,v 1.41 2011/12/09 13:51:56 hans Exp $ SHA1 (unrarsrc-4.0.7.tar.gz) = e4c8b0d47278475f3dfb77e8497f5818eca3d4a0 RMD160 (unrarsrc-4.0.7.tar.gz) = 0629f8600e9ddb298f59fc05b9569bd40703acaf Size (unrarsrc-4.0.7.tar.gz) = 152853 bytes SHA1 (patch-ac) = ca8bcbc1ce6723a2cd576067c6fbd171abb0c711 +SHA1 (patch-consio.cpp) = 341dd714b165fabf3dec0213b9bb3e57dcc146f5 diff --git a/archivers/unrar/patches/patch-consio.cpp b/archivers/unrar/patches/patch-consio.cpp new file mode 100644 index 00000000000..29b60312413 --- /dev/null +++ b/archivers/unrar/patches/patch-consio.cpp @@ -0,0 +1,15 @@ +$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 |