diff --git a/backport-04-fix-directory-path-is-truncated.patch b/backport-04-fix-directory-path-is-truncated.patch new file mode 100644 index 0000000000000000000000000000000000000000..b51b270990d9cc83c0e1e2f5716edb184d1d46c5 --- /dev/null +++ b/backport-04-fix-directory-path-is-truncated.patch @@ -0,0 +1,11 @@ +--- a/libopenfcoe.c.ori 2021-07-28 14:16:15.291321043 +0800 ++++ b/libopenfcoe.c 2021-07-28 14:16:26.339525321 +0800 +@@ -58,7 +58,7 @@ + static char *safe_makepath(char *path, size_t path_sz, + char *dname, char *fname) + { +- size_t dsz = sizeof(dname); ++ size_t dsz = strlen(dname); + size_t fsz = strlen(fname); + char *cp = path; + diff --git a/fcoe-utils.spec b/fcoe-utils.spec index d90e7b85fae8faf617cbe1e01c54976770147e60..8f1e517f25e74c782abb71d46162ce0592bd794d 100644 --- a/fcoe-utils.spec +++ b/fcoe-utils.spec @@ -1,6 +1,6 @@ Name: fcoe-utils Version: 1.0.33 -Release: 1 +Release: 2 Summary: Fibre Channel over Ethernet utilities License: GPLv2 URL: https://github.com/morbidrsa/fcoe-utils @@ -12,6 +12,7 @@ Patch0: backport-00-Revert_Make_gcc_compiler_happy_about_ifname_stri Patch1: backport-01-fix_VLAN_device_name_overflow_check.patch Patch2: backport-02-string_op_truncation_format_trauncation.patch Patch3: backport-03-use-of-uninitialized-values-detected-during-LTO.patch +Patch4: backport-04-fix-directory-path-is-truncated.patch #This patch refer to ubuntu's version