Package: ucf
Version: 3.0046
Severity: important

Hi,

The code added in ucf 3.0046 to sanitize the environment breaks with
dash as /bin/sh, if the OPTIND variable is defined. This causes packages
installation to fail.

MWE:
# OPTIND=42 apt-get install autofs
[...]
Setting up autofs (5.1.9-1.2+b1) ...
/usr/bin/ucfr: 12: unset: Illegal number: 
dpkg: error processing package autofs (--configure):
 installed autofs package post-installation script subprocess returned error 
exit status 2
Processing triggers for man-db (2.13.0-1) ...
Processing triggers for libc-bin (2.40-6) ...
Errors were encountered while processing:
 autofs
E: Sub-process /usr/bin/dpkg returned an error code (1)


See also #985478 (dash: unset OPTIND returns 2 (Illegal number)).

Best,

Lucas

Reply via email to