Re: [sharutils-4.13.3] uudecode does not handle -o option properly
Bruce Korb <[email protected]>
| Newsgroups | gmane.comp.gnu.utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
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!