reassign 701180 dhelp
retitle 701180 "gz-extract does not handle spaces in file names"
thanks

 ❦ 22 février 2013 14:43 CET, Laurent Bonnaud <[email protected]> :

> every week I receive an email from cron with the following error messages:
>
> /etc/cron.weekly/dhelp:
> Error decompressing file: /usr/share/doc/fvwm-crystal/Mouse bindings.txt.gz
> Error decompressing file: /usr/share/doc/fvwm-crystal/Application 
> database.txt.gz
> Error decompressing file: /usr/share/doc/fvwm-crystal/Keyboard bindings.txt.gz
>
> When I look at the /var/lib/doc-base/documents/fvwm-crystal.* files I
> see that the space character is improperly encoded.

I can't be sure because I did not create those files, but I think the
question mark is a trick to avoid putting space. dhelp seems to be able
to handle globbing. However, it does not handle spaces in files. The
gz-extract script should use quotes around arguments:

2>/dev/null gzip -dc "${1}" > "${2}"

Reassigning to dhelp.
-- 
Watch out for off-by-one errors.
            - The Elements of Programming Style (Kernighan & Plauger)

Attachment: pgpL7ze07bnbJ.pgp
Description: PGP signature

Reply via email to