Bug#726329: vim-addon-manager: fails when $HOME is unset

Helmut Grohne helmut at subdivi.de
Mon Oct 14 15:39:26 UTC 2013


Package: vim-addon-manager
Version: 0.5.2
Severity: normal
Tags: patch

Dear Maintainer,

when executing vam in an environment that does not include $HOME, it
errors out:

$ env -u HOME vam -w show foo
/usr/bin/vim-addon-manager:201:in `join': can't convert nil into String (TypeError)
        from /usr/bin/vim-addon-manager:201:in `parse_cmdline'
        from /usr/bin/vim-addon-manager:251:in `<top (required)>'
        from /usr/bin/vam:2:in `load'
        from /usr/bin/vam:2:in `<main>'
$

Why is this bad?

 * The error message does not tell the user what is wrong.
 * Other programs trying to access the users home default to using
   getent if $HOME is unavailable.
 * When passing the -w switch there is no need to access any home at
   all.

I propose to use look up the home directory using the 'etc' Ruby stdlib
module. Have a look at the attached patch for details.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vim-addon-manager.patch
Type: text/x-diff
Size: 586 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20131014/9f1634c4/attachment.patch>


More information about the pkg-vim-maintainers mailing list