lstat was not used because HAVE_LSTAT check is present in system.h but was not generated --- cpio-2.6/configure.ac.old 2006-08-30 22:02:37.000000000 +0200 +++ cpio-2.6/configure.ac 2006-08-30 22:15:12.000000000 +0200 @@ -92,7 +92,7 @@ else AC_CONFIG_LINKS(src/fnmatch.h:headers/fnmatch.h) fi -AC_CHECK_FUNCS(lchown endpwent endgrent) +AC_CHECK_FUNCS(lchown endpwent endgrent lstat) AC_FUNC_VPRINTF AC_FUNC_ALLOCA AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"]) --- cpio-2.6/config.h.in.old 2006-08-30 22:10:34.000000000 +0200 +++ cpio-2.6/config.h.in 2006-08-30 22:15:41.000000000 +0200 @@ -334,6 +334,9 @@ /* Define to 1 if you have the `wmempcpy' function. */ #undef HAVE_WMEMPCPY +/* Define to 1 if you have the `lstat' function. */ +#undef HAVE_LSTAT + /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL --- cpio-2.6/configure.old 2006-08-30 22:23:33.000000000 +0200 +++ cpio-2.6/configure 2006-08-30 22:23:44.000000000 +0200 @@ -12838,7 +12838,8 @@ -for ac_func in lchown endpwent endgrent + +for ac_func in lchown endpwent endgrent lstat do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5