[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Failures on directory mode verifications on rpm 3.0.5 on AIX



On Tue, Mar 27, 2001 at 09:08:04AM -0600, Marc Stephenson wrote:
> Howdy,
>      When I verify the RPMs produced with RPM 3.0.5 for AIX, I see a 
> substantial number of mode verification errors on directories.  The
> entries in the files sections for these directories don't seem especially
> interesting, and I can reproduce it with a relatively benign looking RPM:
> 
> ...
> %install
> mkdir -p ${RPM_BUILD_ROOT}/foo
> 
> %files
> %defattr(-,root,root)
> /foo
> ...
> 
> yogi:13# rpm -V test
> .M......   /foo
> 

The M above is set in lib/verify.c:348

	rc = rpmVerifyFile(qva->qva_prefix, h, i, &verifyResult, omitMask);
	...
	#define _verify(_RPMVERIFY_F, _C)       \
	        ((verifyResult & _RPMVERIFY_F) ? _C : aok)
	...
	mode = _verify(RPMVERIFY_MODE, "M");

and the most likely explanation is that the rpmVerifyFile() test

	if (flags & RPMVERIFY_MODE) {
	    if (modeList[filenum] != sb.st_mode)
	        *result |= RPMVERIFY_MODE;
	}

is failing because the modeList does not agree with the lstat(2) returned
sb.st_mode on AIX, probably because the build/install machines have different
stat(2) modes for some reason.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org	(jbj@redhat.com)
Chapel Hill, NC





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []