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

Bug#353867: Please add a silent option to rpcinfo



Control:; reassign -1 rpcbind

This bug has been assigned to libc6 which no longer ships the rpcinfo
program.

On 2006-03-26 15:04 +0200, Steinar H. Gunderson wrote:

> tags 353867 - patch
> thanks
>
> On Tue, Feb 21, 2006 at 03:55:17PM +0100, Stephan Krempel wrote:
>> -               $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
>> +               $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 \
>> +                                                      /dev/console>&1 ||
>
> This patch does not what you think it does. More specifically, it is
> identical to
>
>   $PREFIX/bin/rpcinfo -u localhost nfs 3 /dev/console >/dev/null 2>&1
>
> as you cannot route arbitrary files around like that, only file descriptors.
> rpcinfo naturally takes no "/dev/console" parameter, and thus exits with a
> syntax error, which is sent to /dev/null.
>
> You might want to ask the libc6 people to add a "silent" option to rpcinfo,
> or at least something that doesn't open /dev/console if that is indeed what's
> happening.

AFAICT there is no such option, so this bug might still be relevant.

Cheers,
       Sven


Reply to: