Date: Mon, 28 Dec 2009 03:30:31 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r201109 - head/lib/libarchive Message-ID: <200912280330.nBS3UVe9078062@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kientzle Date: Mon Dec 28 03:30:31 2009 New Revision: 201109 URL: http://svn.freebsd.org/changeset/base/201109 Log: Compatibility with old systems with non-POSIX getpwuid_r/getgrgid_r. Modified: head/lib/libarchive/archive_read_disk_set_standard_lookup.c Modified: head/lib/libarchive/archive_read_disk_set_standard_lookup.c ============================================================================== --- head/lib/libarchive/archive_read_disk_set_standard_lookup.c Mon Dec 28 03:28:21 2009 (r201108) +++ head/lib/libarchive/archive_read_disk_set_standard_lookup.c Mon Dec 28 03:30:31 2009 (r201109) @@ -195,6 +195,7 @@ lookup_uname_helper(struct name_cache *c if (cache->buff == NULL) return (NULL); for (;;) { + result = &pwent; /* Old getpwuid_r ignores last arg. */ r = getpwuid_r((uid_t)id, &pwent, cache->buff, cache->buff_size, &result); if (r == 0) @@ -243,6 +244,7 @@ lookup_gname_helper(struct name_cache *c if (cache->buff == NULL) return (NULL); for (;;) { + result = &grent; /* Old getgrgid_r ignores last arg. */ r = getgrgid_r((gid_t)id, &grent, cache->buff, cache->buff_size, &result); if (r == 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912280330.nBS3UVe9078062>