Package: vim-addon-manager
Version: 0.5.9
Severity: normal

Dear Maintainer,

in Line 202 (parse_cmdline) you call Etc.getlogin and Etc.getpwnam, but this
fails under certain circumstances. For example when called by a daemon.
We (vim-lastplace) use vim-addon-manager in our maintainer scripts, so this can
lead to errors with automatic updates:

https://bugs.launchpad.net/ubuntu/+source/vim-lastplace/+bug/1811935
https://launchpadlibrarian.net/406433346/DpkgTerminalLog.txt

/usr/bin/vim-addon-manager:202:in `getpwnam': no implicit conversion of nil
into String (TypeError)
        from /usr/bin/vim-addon-manager:202:in `parse_cmdline'
        from /usr/bin/vim-addon-manager:252:in `<main>'

Could you change the code not to call Etc.getlogin and Etc.getpwnam when not
needed (when using -w parameter)?

Handling the case when getlogin returns Null and throwing a useful error
message also would be great.

Yours
  David



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=custom.UTF-8, LC_CTYPE=custom.UTF-8 (charmap=UTF-8), 
LANGUAGE=custom.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vim-addon-manager depends on:
ii  ruby        1:2.5.1
ii  vim-common  2:8.1.0875-2

Versions of packages vim-addon-manager recommends:
ii  vim  2:8.1.0875-2

vim-addon-manager suggests no packages.

-- no debconf information

Reply via email to