Skip to content

Netserver remove /dev/null in some cases, breaking many things #80

@jean2

Description

@jean2
   This bug is hard to reproduce, as the condition that lead to

Netserver deleting /dev/null are quite mysterious. I was getting my
/dev/null removed over the years at very rare occurences, until
I managed to track it down to Netserver.

The issue is not present in the tarball for version 2.7.0. It

was introduced in commit :
5380b1f
In particular, this line :
+ FileName = NETPERF_NULL;
I already reported this bug in Debian :
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068490

A quick look at the source code show that the code is wrong in

very obvious way. The fix is quite simple and obvious, and I provide
a patch (included below).
Note that to compile Netperf in amodern distro, other things
need to be fixed :-( You may look at patches for Netperf in Debian
as a start...
Thanks in advance !

Jean

netperf_no_unlink_dev_null.diff.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions