[Rpm-maint] [rpm-software-management/rpm] Make user/group info reliable operation across chroot (PR #2503)
Neal H. Walfield
notifications at github.com
Tue May 9 14:06:19 UTC 2023
@nwalfield commented on this pull request.
> + long *ret)
+{
+ char *buf = NULL;
+ int rc = lookup_field(path, val, vcol, rcol, &buf);
+ if (rc == 0) {
+ long num = atol(buf);
+ *ret = num;
+ free(buf);
+ }
+ return rc;
+}
+
+static int lookup_name(const char *path, long val, int vcol, int rcol,
+ char **ret)
+{
+ char vbuf[256];
Is it possible to use [`asprintf`](https://man7.org/linux/man-pages/man3/asprintf.3.html) or is that not portable enough?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2503#discussion_r1188657232
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2503/review/1418725825 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230509/3138676d/attachment.html>
More information about the Rpm-maint
mailing list