Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jean2 opened this issue Apr 6, 2024 · 0 comments
Open

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

jean2 opened this issue Apr 6, 2024 · 0 comments

Comments

@jean2
Copy link

jean2 commented Apr 6, 2024

   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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant