Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: [PATCH 07/17] quota: update 4.06 -> 4.09
Date: Sun, 20 Nov 2022 14:31:12 +0100	[thread overview]
Message-ID: <20221120133122.2464634-7-alex@linutronix.de> (raw)
In-Reply-To: <20221120133122.2464634-1-alex@linutronix.de>

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 ...-realloc-3-instead-of-reallocarray-3.patch | 34 -------------------
 meta/recipes-extended/quota/quota/fcntl.patch | 27 +++++++--------
 .../quota/{quota_4.06.bb => quota_4.09.bb}    |  5 ++-
 3 files changed, 15 insertions(+), 51 deletions(-)
 delete mode 100644 meta/recipes-extended/quota/quota/0001-quota-Use-realloc-3-instead-of-reallocarray-3.patch
 rename meta/recipes-extended/quota/{quota_4.06.bb => quota_4.09.bb} (89%)

diff --git a/meta/recipes-extended/quota/quota/0001-quota-Use-realloc-3-instead-of-reallocarray-3.patch b/meta/recipes-extended/quota/quota/0001-quota-Use-realloc-3-instead-of-reallocarray-3.patch
deleted file mode 100644
index 34ded2d857..0000000000
--- a/meta/recipes-extended/quota/quota/0001-quota-Use-realloc-3-instead-of-reallocarray-3.patch
+++ /dev/null
@@ -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
-
diff --git a/meta/recipes-extended/quota/quota/fcntl.patch b/meta/recipes-extended/quota/quota/fcntl.patch
index 51a770ce6e..09a0c687b6 100644
--- a/meta/recipes-extended/quota/quota/fcntl.patch
+++ b/meta/recipes-extended/quota/quota/fcntl.patch
@@ -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 @@
diff --git a/meta/recipes-extended/quota/quota_4.06.bb b/meta/recipes-extended/quota/quota_4.09.bb
similarity index 89%
rename from meta/recipes-extended/quota/quota_4.06.bb
rename to meta/recipes-extended/quota/quota_4.09.bb
index 0535d14c20..b779657dfc 100644
--- a/meta/recipes-extended/quota/quota_4.06.bb
+++ b/meta/recipes-extended/quota/quota_4.09.bb
@@ -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"
 
-- 
2.30.2



  parent reply	other threads:[~2022-11-20 13:31 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20 13:31 [PATCH 01/17] elfutils: update 0.187 -> 0.188 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 02/17] rsync: update 3.2.5 -> 3.2.7 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 03/17] swig: update 4.0.2 -> 4.1.0 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 04/17] tcl: update 8.6.11 -> 8.6.12 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 05/17] unfs: update 0.9.22 -> 0.10.0 Alexander Kanavin
2022-11-22 12:29   ` [OE-core] " Richard Purdie
2022-11-22 15:03     ` Alexander Kanavin
2022-11-22 15:09       ` Richard Purdie
2022-11-22 15:13         ` Alexander Kanavin
2022-11-24 13:07         ` Alexander Kanavin
2022-11-24 13:44           ` Richard Purdie
2022-11-24 14:08             ` Alexander Kanavin
     [not found]             ` <172A8A8569CFF8A4.11309@lists.openembedded.org>
2022-11-25 11:49               ` Alexander Kanavin
2022-11-20 13:31 ` [PATCH 06/17] man-db: update 2.10.2 -> 2.11.1 Alexander Kanavin
2022-11-22 12:31   ` [OE-core] " Richard Purdie
2022-11-22 20:53     ` Alexander Kanavin
2022-11-22 22:16       ` Richard Purdie
2022-11-20 13:31 ` Alexander Kanavin [this message]
2022-11-20 13:31 ` [PATCH 08/17] shadow: update 4.12.3 -> 4.13 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 09/17] texinfo: update 6.8 -> 7.0 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 10/17] libhandy: update 1.6.3 -> 1.8.0 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 11/17] xf86-input-mouse: update 1.9.3 -> 1.9.4 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 12/17] flac: update 1.4.0 -> 1.4.2 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 13/17] webkitgtk: update 2.36.7 -> 2.38.2 Alexander Kanavin
2022-11-22 15:21   ` [OE-core] " Richard Purdie
2022-11-24 12:23     ` Alexander Kanavin
2022-11-20 13:31 ` [PATCH 14/17] icu: update 71.1 -> 72-1 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 15/17] libgpg-error: update 1.45 -> 1.46 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 16/17] popt: update 1.18 -> 1.19 Alexander Kanavin
2022-11-20 13:31 ` [PATCH 17/17] vte: update 0.68.0 -> 0.70.1 Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221120133122.2464634-7-alex@linutronix.de \
    --to=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox