index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-01-21 10:03:12 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-21 10:03:12 +0100 |
commit | 7f1e3da67e8b6bbc45c85937d4938547f32076d6 (patch) | |
tree | dbf618bb5edd9e0fd2cab1d629997f5885c2a3c3 /core/libaio | |
parent | 6b98f5a19f2f93f145e1e5b5d1e79d6ff29620fe (diff) | |
parent | 6d7fd11017d125970175ea85882920cc413e835e (diff) |
-rw-r--r-- | core/libaio/PKGBUILD | 8 | ||||
-rw-r--r-- | core/libaio/libaio-0.3.111-sizeof-template.patch | 24 |
diff --git a/core/libaio/PKGBUILD b/core/libaio/PKGBUILD index 92c69c31..a4cbd68f 100644 --- a/core/libaio/PKGBUILD +++ b/core/libaio/PKGBUILD @@ -7,3 +7,11 @@ eval "$( s@make$@CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe -fno-stack-protector" make@ ' )" + +# see also FS#60283 +source+=('libaio-0.3.111-sizeof-template.patch') +md5sums+=('8c240ea721460fa2d34f9e134b57544d') +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i ../libaio-0.3.111-sizeof-template.patch +} diff --git a/core/libaio/libaio-0.3.111-sizeof-template.patch b/core/libaio/libaio-0.3.111-sizeof-template.patch new file mode 100644 index 00000000..5eee8958 --- /dev/null +++ b/core/libaio/libaio-0.3.111-sizeof-template.patch @@ -0,0 +1,24 @@ +diff -rauN libaio-0.3.111/harness/cases/19.t libaio-0.3.111-sizeof-template-patch/harness/cases/19.t +--- libaio-0.3.111/harness/cases/19.t 2018-03-06 23:24:47.000000000 +0100 ++++ libaio-0.3.111-sizeof-template-patch/harness/cases/19.t 2018-10-14 10:02:19.004873314 +0200 +@@ -41,7 +41,7 @@ + int fd; + char template[sizeof(TEMPLATE)]; + +- strncpy(template, TEMPLATE, sizeof(TEMPLATE)); ++ strncpy(template, TEMPLATE, sizeof(template)); + fd = mkostemp(template, O_DIRECT); + if (fd < 0) { + perror("mkstemp"); +diff -rauN libaio-0.3.111/harness/cases/21.t libaio-0.3.111-sizeof-template-patch/harness/cases/21.t +--- libaio-0.3.111/harness/cases/21.t 2018-03-06 23:24:47.000000000 +0100 ++++ libaio-0.3.111-sizeof-template-patch/harness/cases/21.t 2018-10-14 10:02:34.901333421 +0200 +@@ -43,7 +43,7 @@ + int fd; + char temp_file[sizeof(TEMPLATE)]; + +- strncpy(temp_file, TEMPLATE, sizeof(TEMPLATE)); ++ strncpy(temp_file, TEMPLATE, sizeof(temp_file)); + fd = mkstemp(temp_file); + if (fd < 0) { + perror("mkstemp"); |