diff options
| author | Ashish Sharma <asharma@mvista.com> | 2022-06-13 23:03:02 +0530 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-06-30 13:39:27 -0400 |
| commit | 06efcf5d562cf40d49a9f0179d0d9e9439506bef (patch) | |
| tree | 8e1683e2e3a7e6de5174dc950f8d02a9e7bf777b | |
| parent | 63d49fd481fb99b015c86c22f65e579da43e3c24 (diff) | |
| download | meta-openembedded-06efcf5d562cf40d49a9f0179d0d9e9439506bef.tar.gz | |
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>
| -rw-r--r-- | meta-networking/recipes-support/netperf/files/netserver_permissions.patch | 29 | ||||
| -rw-r--r-- | meta-networking/recipes-support/netperf/netperf_git.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/netperf/files/netserver_permissions.patch b/meta-networking/recipes-support/netperf/files/netserver_permissions.patch new file mode 100644 index 0000000000..55316363e0 --- /dev/null +++ b/meta-networking/recipes-support/netperf/files/netserver_permissions.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 78c9ae7d9a6735575bc72dd28a19b2bc3a251981 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrew Elble <aweits@rit.edu> | ||
| 3 | Date: Mon, 8 Oct 2018 14:31:20 -0400 | ||
| 4 | Subject: [PATCH] netserver: don't change permissions on /dev/null | ||
| 5 | |||
| 6 | the (now default) suppress_debug=1 changes permissions on /dev/null | ||
| 7 | to 0644. Don't do this. | ||
| 8 | |||
| 9 | Upstream-Status: Pending [https://github.com/HewlettPackard/netperf/pull/27/commits/78c9ae7d9a6735575bc72dd28a19b2bc3a251981] | ||
| 10 | Signed-off-by: Ashish Sharma <asharma@mvista.com> | ||
| 11 | |||
| 12 | --- | ||
| 13 | src/netserver.c | 3 ++- | ||
| 14 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/src/netserver.c b/src/netserver.c | ||
| 17 | index 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"); | ||
diff --git a/meta-networking/recipes-support/netperf/netperf_git.bb b/meta-networking/recipes-support/netperf/netperf_git.bb index 62ba966d01..06b2eddbb6 100644 --- a/meta-networking/recipes-support/netperf/netperf_git.bb +++ b/meta-networking/recipes-support/netperf/netperf_git.bb | |||
| @@ -14,6 +14,7 @@ SRC_URI = "git://github.com/HewlettPackard/netperf.git;branch=master;protocol=ht | |||
| 14 | file://netserver.service \ | 14 | file://netserver.service \ |
| 15 | file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \ | 15 | file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \ |
| 16 | file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \ | 16 | file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \ |
| 17 | file://netserver_permissions.patch \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" | 20 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" |
