mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 18:09:54 +00:00
ARNING:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:
devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>
Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
checking file configure.ac
Hunk #1 succeeded at 27 with fuzz 1 (offset 8 lines).
and others
Signed-off-by: Armin Kuster <akuster808@gmail.com>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From faaa796a138cbd5033b1e53f33faac0cf4162bf5 Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Sun, 25 Jun 2017 00:59:24 -0700
|
|
Subject: [PATCH] tools.cc: fixed unused-result warning
|
|
|
|
fix
|
|
| ../../squid-3.5.26/src/tools.cc: In function 'void enter_suid()':
|
|
| ../../squid-3.5.26/src/tools.cc:616:11: error: ignoring return value of 'int setuid(__uid_t)', declared with attribute warn_unused_result [-Werror=unused-result]
|
|
| setuid(0);
|
|
| ~~~~~~^~~
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
---
|
|
src/tools.cc | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/tools.cc b/src/tools.cc
|
|
index 8137a03..843e266 100644
|
|
--- a/src/tools.cc
|
|
+++ b/src/tools.cc
|
|
@@ -612,8 +612,8 @@ enter_suid(void)
|
|
if (setresuid((uid_t)-1, 0, (uid_t)-1) < 0)
|
|
debugs (21, 3, "enter_suid: setresuid failed: " << xstrerror ());
|
|
#else
|
|
-
|
|
- setuid(0);
|
|
+ if (setuid(0) < 0)
|
|
+ debugs(50, DBG_IMPORTANT, "WARNING: no_suid: setuid(0): " << xstrerror());
|
|
#endif
|
|
#if HAVE_PRCTL && defined(PR_SET_DUMPABLE)
|
|
/* Set Linux DUMPABLE flag */
|