mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
quota: update 4.06 -> 4.09
(From OE-Core rev: 0e3580c79d21b5ee1ca84e5df0edb4017899d18a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0081352172
commit
4f84a13a02
|
|
@ -1,34 +0,0 @@
|
|||
From 02b222a335527f1031cc9495d8c5ebc1bc5b1d4e Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Wed, 11 Nov 2020 15:00:47 +0100
|
||||
Subject: [PATCH] quota: Use realloc(3) instead of reallocarray(3)
|
||||
|
||||
reallocarray(3) has been added to glibc relatively recently (version
|
||||
2.26, from 2017) and apparently not all users run new enough glibc. Just
|
||||
use realloc(3) for now since in this case there's no real risk of
|
||||
overflow.
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Signed-off-by: Jan Kara <jack@suse.cz>
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
quota.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/quota.c b/quota.c
|
||||
index a6ed61f..a60de12 100644
|
||||
--- a/quota.c
|
||||
+++ b/quota.c
|
||||
@@ -385,7 +385,7 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
case 259:
|
||||
fscount++;
|
||||
- fsnames = reallocarray(fsnames, fscount, sizeof(char *));
|
||||
+ fsnames = realloc(fsnames, fscount * sizeof(char *));
|
||||
if (!fsnames)
|
||||
die(1, _("Not enough memory for filesystem names"));
|
||||
fsnames[fscount - 1] = optarg;
|
||||
--
|
||||
2.17.1
|
||||
|
||||
|
|
@ -1,3 +1,8 @@
|
|||
From 00a456145531d194d3993c9f4cd404d5ca16c9df Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 6 Apr 2015 17:36:44 +0000
|
||||
Subject: [PATCH] quota: Fix build with musl
|
||||
|
||||
Include fcntl.h to pacify compiler errors on musl
|
||||
like
|
||||
|
||||
|
|
@ -9,20 +14,14 @@ Upstream-Status: Pending
|
|||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
diff --git a/quota.h b/quota.h
|
||||
index 4c21411..d20c217 100644
|
||||
--- a/quota.h
|
||||
+++ b/quota.h
|
||||
@@ -182,6 +182,6 @@ enum {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-long quotactl __P((int, const char *, qid_t, caddr_t));
|
||||
+long quotactl (int, const char *, qid_t, caddr_t);
|
||||
|
||||
#endif /* _QUOTA_ */
|
||||
---
|
||||
quotacheck.c | 1 +
|
||||
quotaio.c | 1 +
|
||||
rquota_client.c | 4 ++++
|
||||
3 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/quotacheck.c b/quotacheck.c
|
||||
index 2cdf475..07c18a7 100644
|
||||
index bd62d9a..772a27d 100644
|
||||
--- a/quotacheck.c
|
||||
+++ b/quotacheck.c
|
||||
@@ -19,6 +19,7 @@
|
||||
|
|
@ -46,7 +45,7 @@ index 94ae458..d57fc1a 100644
|
|||
#include <sys/stat.h>
|
||||
#include <sys/file.h>
|
||||
diff --git a/rquota_client.c b/rquota_client.c
|
||||
index a3a4ae3..0ffe7a9 100644
|
||||
index 7f8e821..d48505a 100644
|
||||
--- a/rquota_client.c
|
||||
+++ b/rquota_client.c
|
||||
@@ -19,7 +19,9 @@
|
||||
|
|
|
|||
|
|
@ -9,9 +9,8 @@ LIC_FILES_CHKSUM = "file://rquota_server.c;beginline=1;endline=20;md5=fe7e0d7e11
|
|||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/project/linuxquota/quota-tools/${PV}/quota-${PV}.tar.gz \
|
||||
file://fcntl.patch \
|
||||
file://0001-quota-Use-realloc-3-instead-of-reallocarray-3.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "2f3e03039f378d4f0d97acdb49daf581dcaad64d2e1ddf129495fd579fbd268d"
|
||||
"
|
||||
SRC_URI[sha256sum] = "9cdaca154bc92afc3117f0e5f5b3208dd5f84583af1cf061c39baa0a2bb142f9"
|
||||
|
||||
CVE_PRODUCT = "linux_diskquota"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user