From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 1 Dec 2008 15:09:09 +0300 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20081201120908.GD25270@altlinux.org> Mail-Followup-To: devel@lists.altlinux.org References: <20081201115720.GA17953@imap.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3oCie2+XPXTnK5a5" Content-Disposition: inline In-Reply-To: <20081201115720.GA17953@imap.altlinux.org> Subject: Re: [devel] =?koi8-r?b?98zBxMXOycUgxMnSxcvUz9LJ0c3JINcgcnBt?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 12:18:46 -0000 Archived-At: List-Archive: List-Post: --3oCie2+XPXTnK5a5 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 01, 2008 at 02:57:20PM +0300, Grigory Batalov wrote: > =FE=D4=CF =D3=CC=D5=DE=C9=D4=D3=D1, =C5=D3=CC=C9 =C4=D7=C1 =D2=C1=DA=CE= =D9=C8 =D0=C1=CB=C5=D4=C1 =D3=CF=C4=C5=D2=D6=C1=D4 (=D7=CC=C1=C4=C5=C0=D4) = =CF=C4=CE=D5 =C9 =D4=D5 =D6=C5 > =C4=C9=D2=C5=CB=D4=CF=D2=C9=C0? =E5=D3=CC=C9 =C4=C9=D2=C5=CB=D4=CF=D2=C9=C9 "=CF=C4=C9=CE=C1=CB=CF=D7=D9=C5= ", =D4=CF =CE=C9=DE=C5=C7=CF =CE=C5 =D3=CC=D5=DE=C9=D4=D3=D1 -- rpm "=D0=CF= =C4=C5=CC=C9=D4" =DC=D4=CF=D4 =CB=C1=D4=C1=CC=CF=C7 =CD=C5=D6=C4=D5 =C4=D7=D5=CD=D1 =D0=C1= =CB=C5=D4=C1=CD=C9, =C9 =C2=D5=C4=C5=D4 =D0=D2=CF=C2=CF=D7=C1=D4=D8 =D5=C4= =C1=CC=D1=D4=D8 =C5=C7=CF =D4=CF=CC=D8=CB=CF =D0=D2=C9 =D5=C4=C1=CC=C5=CE=C9=C9 =D0=CF=D3=CC=C5=C4=CE=C5=C7=CF =D0=C1=CB= =C5=D4=C1, =CB=CF=D4=CF=D2=D9=CA =D7=CC=C1=C4=C5=C5=D4 =DC=D4=C9=CD =CB=C1= =D4=C1=CC=CF=C7=CF=CD. =E5=D3=CC=C9 =D6=C5 =C4=C9=D2=C5=CB=D4=CF=D2=C9=C9 "=D2=C1=DA=CE=D9=C5", = =D4=CF =C2=D5=C4=C5=D4 =C6=C1=CA=CC=CF=D7=D9=CA =CB=CF=CE=C6=CC=C9=CB=D4. =FC=D4=CF =CB=C1=D3=C1=C5=D4=D3=D1 =C9 =C6=C1=CA=CC=CF=D7. lib/transaction.c: 878 static int filecmp(const TFI_t fi1, const int ix1, const TFI_t fi2, = const int ix2) 879 /*@*/ 880 { 881 uint_16 m1 =3D fi1->fmodes[ix1], m2 =3D fi2->fmodes[ix2]; 882 uint_32 f1 =3D fi1->fflags[ix1], f2 =3D fi2->fflags[ix2]; 883 const char *u1 =3D fi1->fuser[ix1], *u2 =3D fi2->fuser[ix2]; 884 const char *g1 =3D fi1->fgroup[ix1], *g2 =3D fi2->fgroup[ix2]; 885=09 886 /* both file type and permissions must match */ 887 if (m1 !=3D m2) 888 return 1; 889=09 890 /* ownership must also match */ 891 if (strcmp(u1, u2) || strcmp(g1, g2)) 892 return 1; 893=09 894 if ((f1 | f2) & RPMFILE_GHOST) 895 /* one or both %ghost files, no extra check */ 896 ; 897 else if (S_ISLNK(m1)) { 898 /* symlinks must have the same target */ 899 const char *l1 =3D fi1->flinks[ix1], *l2 =3D fi2->flinks[ix2]; 900 if (strcmp(l1, l2)) 901 return 1; 902 } 903 else if (S_ISREG(m1)) { 904 /* regular files must have the same md5 sum */ 905 const char *md51 =3D fi1->fmd5s[ix1], *md52 =3D fi2->fmd5s[ix2]; 906 if (strcmp(md51, md52)) 907 return 1; 908 } 909=09 910 /* e.g. mtime difference is immaterial */ 911 return 0; 912 } --3oCie2+XPXTnK5a5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkz0+QACgkQfBKgtDjnu0aLPgCbBnY2e1YeBgA32z3k5f8rGmIs DGEAnjKHz46Zv8rokLWS2AoEvGQlbxVO =hZjV -----END PGP SIGNATURE----- --3oCie2+XPXTnK5a5--