From nobody@FreeBSD.org  Tue Dec  8 15:06:40 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2F60C106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Dec 2009 15:06:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1F0EC8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  8 Dec 2009 15:06:40 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB8F6dZs034538
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 8 Dec 2009 15:06:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nB8F6dgM034537;
	Tue, 8 Dec 2009 15:06:39 GMT
	(envelope-from nobody)
Message-Id: <200912081506.nB8F6dgM034537@www.freebsd.org>
Date: Tue, 8 Dec 2009 15:06:39 GMT
From: Vyacheslav Anikin <anikinsl@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] security/pwman
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141281
>Category:       ports
>Synopsis:       [patch] security/pwman
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 08 15:10:02 UTC 2009
>Closed-Date:    Tue Sep 14 02:44:16 UTC 2010
>Last-Modified:  Tue Sep 14 02:50:01 UTC 2010
>Originator:     Vyacheslav Anikin
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
ZAO Iskratelecom
>Environment:
FreeBSD avada.iskratelecom.ru 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
If you have the environment variable that is responsible for localization, while a version of gnupg support languages other than English, then when you enter the wrong password to the secret pgp-key program pwman, then all records from the file pwman.db will be removed.

This patch corrects this error by setting the environment variable environment LC_ALL = C.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- src/pwman.c.orig	2009-12-08 17:54:19.000000000 +0300
+++ src/pwman.c	2009-12-08 17:54:23.000000000 +0300
@@ -151,6 +151,7 @@
 int
 main(int argc, char *argv[])
 {
+	setenv("LC_ALL", "C", 1):
 	pwman_init(argc, argv);
 
 	ui_run();


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->anders 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Dec 8 15:12:40 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141281 

From: Vyacheslav Anikin <anikinsl@gmail.com>
To: bug-followup@FreeBSD.org, anikinsl@gmail.com
Cc:  
Subject: Re: ports/141281: [patch] security/pwman
Date: Tue, 8 Dec 2009 20:38:08 +0300

 --00032555a19685f1af047a3b093a
 Content-Type: text/plain; charset=ISO-8859-1
 
 I'm sorry, I mistaken. In patch, at end of line with setenv() call should be
 ';', not ':'.
 
 --- src/pwman.c.orig     2009-12-08 17:54:19.000000000 +0300
 +++ src/pwman.c  2009-12-08 17:54:23.000000000 +0300
 @@ -151,6 +151,7 @@
  int
  main(int argc, char *argv[])
  {
 +        setenv("LC_ALL", "C", 1);
          pwman_init(argc, argv);
          ui_run();
 
 
 --
 Vyacheslav Anikin (ansl)
 mailto:anikinsl@gmail.com
 
 --00032555a19685f1af047a3b093a
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 I&#39;m sorry, I mistaken. In patch, at end of line with setenv() call shou=
 ld be &#39;;&#39;, not &#39;:&#39;.<br><br><pre><span class=3D"patch_minusl=
 ine">--- src/pwman.c.orig     2009-12-08 17:54:19.000000000 +0300</span><br=
 >
 <span class=3D"patch_plusline">+++ src/pwman.c  2009-12-08 17:54:23.0000000=
 00 +0300</span><br><span class=3D"patch_hunkinfo">@@ -151,6 +151,7 @@</span=
 ><br> int<br> main(int argc, char *argv[])<br> {<br><span class=3D"patch_pl=
 usline">+        setenv(&quot;LC_ALL&quot;, &quot;C&quot;, 1);</span><br>
          pwman_init(argc, argv);<br>         ui_run();<br></pre><br>--<br c=
 lear=3D"all">Vyacheslav Anikin (ansl)<br>mailto:<a href=3D"mailto:anikinsl@=
 gmail.com">anikinsl@gmail.com</a><br>
 
 --00032555a19685f1af047a3b093a--
Responsible-Changed-From-To: anders->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Sat Sep 11 19:33:09 UTC 2010 
Responsible-Changed-Why:  
committer & maintainer timeout (anders ; 277 days) / last commit: 
20100511 (123 days ago) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141281 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Tue Sep 14 02:44:15 UTC 2010 
State-Changed-Why:  
Committed, Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141281 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/141281: commit references a PR
Date: Tue, 14 Sep 2010 02:44:16 +0000 (UTC)

 pgollucci    2010-09-14 02:44:11 UTC
 
   FreeBSD ports repository
 
   Added files:
     security/pwman/files patch-src__convert_pwdb.c 
                          patch-src__pwman.c patch-src__pwman.h 
   Removed files:
     security/pwman/files patch-src-convert_pwdb.c 
                          patch-src-pwman.h 
   Log:
   - Set LC_LANG=C so that pgp-key gpg key integration works
   
   PR:             ports/141281
   Submitted by:   Vyacheslav Anikin <anikinsl@gmail.com>
   Approved by:    maintainer timeout (anders ; 277 days)
   
   Revision  Changes    Path
   1.2       +0 -40     ports/security/pwman/files/patch-src-convert_pwdb.c (dead)
   1.2       +0 -10     ports/security/pwman/files/patch-src-pwman.h (dead)
   1.1       +40 -0     ports/security/pwman/files/patch-src__convert_pwdb.c (new)
   1.1       +10 -0     ports/security/pwman/files/patch-src__pwman.c (new)
   1.1       +10 -0     ports/security/pwman/files/patch-src__pwman.h (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
