Bug 141281 - [patch] security/pwman
Summary: [patch] security/pwman
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-08 15:10 UTC by anikinsl
Modified: 2010-09-14 03:50 UTC (History)
0 users

See Also:


Attachments
file.diff (234 bytes, patch)
2009-12-08 15:10 UTC, anikinsl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description anikinsl 2009-12-08 15:10:02 UTC
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.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-12-08 15:12:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->anders

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 anikinsl 2009-12-08 17:38:08 UTC
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
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2010-09-11 20:33:09 UTC
Responsible Changed
From-To: anders->pgollucci

committer & maintainer timeout (anders ; 277 days) / last commit: 
20100511 (123 days ago)
Comment 4 Philip M. Gollucci freebsd_committer freebsd_triage 2010-09-14 03:44:15 UTC
State Changed
From-To: open->closed

Committed, Thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2010-09-14 03:44:16 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"