1From 78c9ae7d9a6735575bc72dd28a19b2bc3a251981 Mon Sep 17 00:00:00 2001 2From: Andrew Elble <aweits@rit.edu> 3Date: Mon, 8 Oct 2018 14:31:20 -0400 4Subject: [PATCH] netserver: don't change permissions on /dev/null 5 6the (now default) suppress_debug=1 changes permissions on /dev/null 7to 0644. Don't do this. 8 9Upstream-Status: Pending [https://github.com/HewlettPackard/netperf/pull/27/commits/78c9ae7d9a6735575bc72dd28a19b2bc3a251981] 10Signed-off-by: Ashish Sharma <asharma@mvista.com> 11 12--- 13 src/netserver.c | 3 ++- 14 1 file changed, 2 insertions(+), 1 deletion(-) 15 16diff --git a/src/netserver.c b/src/netserver.c 17index 00c8d23..86a1c45 100644 18--- a/src/netserver.c 19+++ b/src/netserver.c 20@@ -278,7 +278,8 @@ open_debug_file() 21 22 #if !defined(WIN32) 23 24- chmod(FileName,0644); 25+ if (!suppress_debug) 26+ chmod(FileName,0644); 27 28 /* redirect stdin to "/dev/null" */ 29 rd_null_fp = fopen(NETPERF_NULL,"r"); 30