summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch')
-rw-r--r--meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch b/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch
index bf721c1af8..63080a42d4 100644
--- a/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch
+++ b/meta/recipes-devtools/patchelf/patchelf/handle-read-only-files.patch
@@ -1,4 +1,4 @@
1From 7f1fd10cfebd5ea2f3e1938abe1bd1c4828164a7 Mon Sep 17 00:00:00 2001 1From 682fb48c137b687477008b68863c2a0b73ed47d1 Mon Sep 17 00:00:00 2001
2From: Fabio Berton <fabio.berton@ossystems.com.br> 2From: Fabio Berton <fabio.berton@ossystems.com.br>
3Date: Fri, 9 Sep 2016 16:00:42 -0300 3Date: Fri, 9 Sep 2016 16:00:42 -0300
4Subject: [PATCH] handle read-only files 4Subject: [PATCH] handle read-only files
@@ -14,13 +14,13 @@ Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
14 src/patchelf.cc | 16 +++++++++++++++- 14 src/patchelf.cc | 16 +++++++++++++++-
15 1 file changed, 15 insertions(+), 1 deletion(-) 15 1 file changed, 15 insertions(+), 1 deletion(-)
16 16
17Index: git/src/patchelf.cc 17diff --git a/src/patchelf.cc b/src/patchelf.cc
18=================================================================== 18index fd1e7b7..a941da1 100644
19--- git.orig/src/patchelf.cc 19--- a/src/patchelf.cc
20+++ git/src/patchelf.cc 20+++ b/src/patchelf.cc
21@@ -499,9 +499,19 @@ void ElfFile<ElfFileParamNames>::sortShd 21@@ -527,9 +527,19 @@ void ElfFile<ElfFileParamNames>::sortShdrs()
22 22
23 static void writeFile(std::string fileName, FileContents contents) 23 static void writeFile(const std::string & fileName, const FileContents & contents)
24 { 24 {
25+ struct stat st; 25+ struct stat st;
26+ int fd; 26+ int fd;
@@ -39,7 +39,7 @@ Index: git/src/patchelf.cc
39 if (fd == -1) 39 if (fd == -1)
40 error("open"); 40 error("open");
41 41
42@@ -515,6 +525,10 @@ static void writeFile(std::string fileNa 42@@ -543,6 +553,10 @@ static void writeFile(const std::string & fileName, const FileContents & content
43 43
44 if (close(fd) != 0) 44 if (close(fd) != 0)
45 error("close"); 45 error("close");