diff options
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.patch | 13 |
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 | 1 | From 1ce974f1cf6afbc528c941a8cdf0817a3fd7c5a7 Mon Sep 17 00:00:00 2001 |
| 2 | 2 | From: "Roy.Li" <rongqing.li@windriver.com> | |
| 3 | Upstream-Status: Pending | 3 | Date: Mon, 30 Mar 2026 22:37:22 +0800 |
| 4 | Subject: [PATCH] fix the empty file writting | ||
| 4 | 5 | ||
| 5 | With the feature that checking the disk filled up, the return | 6 | With the feature that checking the disk filled up, the return |
| 6 | value of function write_behind was checked and used to detect | 7 | value of function write_behind was checked and used to detect |
| @@ -11,13 +12,15 @@ error was miss-raised. | |||
| 11 | make write_behind to return 0 if written file is empty, to fix | 12 | make write_behind to return 0 if written file is empty, to fix |
| 12 | the this bug. | 13 | the this bug. |
| 13 | 14 | ||
| 15 | Upstream-Status: Pending | ||
| 16 | |||
| 14 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | 17 | Signed-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 | ||
| 19 | diff --git a/common/tftpsubs.c b/common/tftpsubs.c | 22 | diff --git a/common/tftpsubs.c b/common/tftpsubs.c |
| 20 | index b4ea3f2..9f6cafc 100644 | 23 | index 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 | -- |
| 38 | 1.9.1 | 41 | 2.34.1 |
| 39 | 42 | ||
