]> git.ipfire.org Git - thirdparty/libarchive.git/commit
bsdcpio: ignore ENOENT for get{grg,pwu}id() 867/head
authorPavel Raiskup <praiskup@redhat.com>
Mon, 20 Feb 2017 17:28:19 +0000 (18:28 +0100)
committerPavel Raiskup <praiskup@redhat.com>
Wed, 22 Feb 2017 11:22:36 +0000 (12:22 +0100)
commit1bfa37818f5e6d8f4fe143084e81d0a102febcba
treea1fc9512784a5a52988ef3988edf957db37b476c
parent5f70aa2252b5cee16127697f5f690648bfccfeb2
bsdcpio: ignore ENOENT for get{grg,pwu}id()

Starting from glibc 2.25, those calls set errno to ENOENT
when the requested id is not found.  So let's stop throwing
warning in this expected case.

Also rework the api of lookup_* functions so it is guaranteed that
lookup_name never returns NULL (unless ENOMEM).
cpio/cpio.c