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

Bug#620421: nfs-kernel-server: init script depends on non-existent ‘/dev/tcp/’



On 04/13/2011 10:12 PM, Andrew O. Shadoura wrote:
> Hello,
> 
> On Wed, 13 Apr 2011 22:04:54 +0200
> Luk Claes <luk@debian.org> wrote:
> 
>>> I confirm the bug.
>>>
>>> # cat </dev/null >/dev/tcp/localhost/111
>>> -su: /dev/tcp/localhost/111: No such file or directory
>>
>> Unless you show that you:
>>
>> 1) have bash 4.1-3 or later installed ('apt-cache policy bash' for
>> instance) 2) are using bash as shell ('exec bash' for instance)
>> 3) sunrpc service is running ('lsof -i :111' for instance)
>> 4) still have this issue
>>
>> It's going to stay closed as only in that case it's supposed to work.
> 
> If it's the only case, it should be specified explicitly. And, after
> all, why not use the utility that is supposed to be used, and not this
> hackish thing?

The only reason it was implemented this way is because bash is still
essential and so does not need a dependency.

> Also, there's no way to get a newer bash unless I install it by hand.
> This system isn't lenny any more, but nothing has upgraded it yet by
> means of dependencies.

Well, we only guarantee to support upgrades from stable to the next one.
Obviously we will try to not break things in unstable and testing.
Though it's not uncommon to make the assumption that users have at least
upgraded to stable before doing partial upgrades to unstable/testing
versions.

Anyway, using a really old packaged bash, a newly packaged bash or a
self compiled bash (even the version in lenny) should all work for this
/dev/tcp use. It can also be replaced by 'lsof -i :111' or something
netcat like, though for both these you need to make sure you have lsof
or netcat installed.

Cheers

Luk



Reply to: