mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
netserver: don't change permissions on /dev/null
Source: MontaVista Software, LLC MR: 117141 Type: Defect Fix Disposition: Backport from [https://github.com/HewlettPackard/netperf/pull/27/commits/78c9ae7d9a6735575bc72dd28a19b2bc3a251981] ChangeID: 199f8618971de15d177dab9651f82f5696ff1aa1 Description: the (now default) suppress_debug=1 changes permissions on /dev/null to 0644. Don't do this. Signed-off-by: Ashish Sharma <asharma@mvista.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
From 78c9ae7d9a6735575bc72dd28a19b2bc3a251981 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andrew Elble <aweits@rit.edu>
|
||||||
|
Date: Mon, 8 Oct 2018 14:31:20 -0400
|
||||||
|
Subject: [PATCH] netserver: don't change permissions on /dev/null
|
||||||
|
|
||||||
|
the (now default) suppress_debug=1 changes permissions on /dev/null
|
||||||
|
to 0644. Don't do this.
|
||||||
|
|
||||||
|
Upstream-Status: Pending [https://github.com/HewlettPackard/netperf/pull/27/commits/78c9ae7d9a6735575bc72dd28a19b2bc3a251981]
|
||||||
|
Signed-off-by: Ashish Sharma <asharma@mvista.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
src/netserver.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/netserver.c b/src/netserver.c
|
||||||
|
index 00c8d23..86a1c45 100644
|
||||||
|
--- a/src/netserver.c
|
||||||
|
+++ b/src/netserver.c
|
||||||
|
@@ -278,7 +278,8 @@ open_debug_file()
|
||||||
|
|
||||||
|
#if !defined(WIN32)
|
||||||
|
|
||||||
|
- chmod(FileName,0644);
|
||||||
|
+ if (!suppress_debug)
|
||||||
|
+ chmod(FileName,0644);
|
||||||
|
|
||||||
|
/* redirect stdin to "/dev/null" */
|
||||||
|
rd_null_fp = fopen(NETPERF_NULL,"r");
|
||||||
@@ -14,6 +14,7 @@ SRC_URI = "git://github.com/HewlettPackard/netperf.git;branch=master;protocol=ht
|
|||||||
file://netserver.service \
|
file://netserver.service \
|
||||||
file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \
|
file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \
|
||||||
file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \
|
file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \
|
||||||
|
file://netserver_permissions.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4"
|
SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4"
|
||||||
|
|||||||
Reference in New Issue
Block a user