summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/tftp-hpa/files/fix-writing-emtpy-file.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/tftp-hpa/files/fix-writing-emtpy-file.patch')
-rw-r--r--meta-networking/recipes-daemons/tftp-hpa/files/fix-writing-emtpy-file.patch13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/fix-writing-emtpy-file.patch b/meta-networking/recipes-daemons/tftp-hpa/files/fix-writing-emtpy-file.patch
index 4f3dcd7767..0b235361c5 100644
--- a/meta-networking/recipes-daemons/tftp-hpa/files/fix-writing-emtpy-file.patch
+++ b/meta-networking/recipes-daemons/tftp-hpa/files/fix-writing-emtpy-file.patch
@@ -1,6 +1,7 @@
1[PATCH] fix the empty file writting 1From 1ce974f1cf6afbc528c941a8cdf0817a3fd7c5a7 Mon Sep 17 00:00:00 2001
2 2From: "Roy.Li" <rongqing.li@windriver.com>
3Upstream-Status: Pending 3Date: Mon, 30 Mar 2026 22:37:22 +0800
4Subject: [PATCH] fix the empty file writting
4 5
5With the feature that checking the disk filled up, the return 6With the feature that checking the disk filled up, the return
6value of function write_behind was checked and used to detect 7value of function write_behind was checked and used to detect
@@ -11,13 +12,15 @@ error was miss-raised.
11make write_behind to return 0 if written file is empty, to fix 12make write_behind to return 0 if written file is empty, to fix
12the this bug. 13the this bug.
13 14
15Upstream-Status: Pending
16
14Signed-off-by: Roy.Li <rongqing.li@windriver.com> 17Signed-off-by: Roy.Li <rongqing.li@windriver.com>
15--- 18---
16 common/tftpsubs.c | 5 ++++- 19 common/tftpsubs.c | 5 ++++-
17 1 file changed, 4 insertions(+), 1 deletion(-) 20 1 file changed, 4 insertions(+), 1 deletion(-)
18 21
19diff --git a/common/tftpsubs.c b/common/tftpsubs.c 22diff --git a/common/tftpsubs.c b/common/tftpsubs.c
20index b4ea3f2..9f6cafc 100644 23index b4ea3f2..30e749a 100644
21--- a/common/tftpsubs.c 24--- a/common/tftpsubs.c
22+++ b/common/tftpsubs.c 25+++ b/common/tftpsubs.c
23@@ -198,9 +198,12 @@ int write_behind(FILE * file, int convert) 26@@ -198,9 +198,12 @@ int write_behind(FILE * file, int convert)
@@ -35,5 +38,5 @@ index b4ea3f2..9f6cafc 100644
35 return write(fileno(file), buf, count); 38 return write(fileno(file), buf, count);
36 39
37-- 40--
381.9.1 412.34.1
39 42