bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sharutils-4.13.3] uudecode does not handle -o option properly


From: Bruce Korb
Subject: Re: [sharutils-4.13.3] uudecode does not handle -o option properly
Date: Mon, 21 Jan 2013 11:12:35 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

On 01/21/13 02:12, Petr Pisar wrote:
> Second the error message does not print new line at the end of usage line.
> (After "[ file ...]".)

That has already been fixed.

> Also there is another bug: Replacing "-" with "/dev/stdout" leads to differnt
> error even if uudecode(1) reads:
> 
>     If the output file is specified to be /dev/stdout or  -,
>     the  result  will  be written to standard output.
> 
> $ uudecode -o /dev/stdout hello.uu
> uudecode: /dev/stdout: Permission denied
> $ echo $?
> 8

The code is blindly opening whatever argument was passed in.
Apparently, you cannot open /dev/stdout in your configuration.
I've now modified the code to look for file names "-" and
"/dev/stdout" as special cases.  I am adding your case as a test case.
Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]