Package: debconf
Version: 1.5.11etch2
Severity: normal
Tags: patch

The debconf-set-selections script does not handle multiple whitespaces
directly before $content in the input correctly. Using a file with the
following content will not give an error, but will be ignored it seems:
beep beep/suid_option select  not suid at all

Note: there are two spaces before the '$content' and
debconf-set-selection will take all but one whitespace to be part of
$content:

# debconf-set-selections -v beep.preseed
info: Trying to set 'beep/suid_option' [select] to '    not suid at all'

This can be easily fixed with this patch:

125c125
<       my ($owner, $label, $type, $content) = 
/^\s*(\S+)\s+(\S+)\s+(\S+)(?:\s(.*))?/;
---
>       my ($owner, $label, $type, $content) = 
> /^\s*(\S+)\s+(\S+)\s+(\S+)(?:\s+(.*))?/;

HTH

Hendrik Jaeger

-- 
An artist should be fit for the best society and keep out of it.

Attachment: signature.asc
Description: Digital signature

Reply via email to