From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 29 01:30:21 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7E5616A41F for ; Thu, 29 Sep 2005 01:30:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88D0543D53 for ; Thu, 29 Sep 2005 01:30:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8T1ULd4035317 for ; Thu, 29 Sep 2005 01:30:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8T1ULiS035316; Thu, 29 Sep 2005 01:30:21 GMT (envelope-from gnats) Date: Thu, 29 Sep 2005 01:30:21 GMT Message-Id: <200509290130.j8T1ULiS035316@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Daniel O'Connor" Cc: Subject: Re: kern/86619: linux emulator interacts oddly with cp X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel O'Connor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 01:30:22 -0000 The following reply was made to PR kern/86619; it has been noted by GNATS. From: "Daniel O'Connor" To: FreeBSD-gnats-submit@freebsd.org Cc: Andrew Bliznak Subject: Re: kern/86619: linux emulator interacts oddly with cp Date: Thu, 29 Sep 2005 10:53:54 +0930 --nextPart5477054.gcDxGBhEZW Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 28 September 2005 02:29, Andrew Bliznak wrote: > Look like behaviour depends on cp binary > gentoo: > andrew@beef$ ldd /compat/linux/bin/cp > /compat/linux/bin/cp: > libc.so.6 =3D> /lib/libc.so.6 (0x28075000) > /lib/ld-linux.so.2 (0x28057000) > debian: > andrew@beef$ ldd /compat/linux/bin/cp > /compat/linux/bin/cp: > libacl.so.1 =3D> /lib/libacl.so.1 (0x28070000) > libc.so.6 =3D> /lib/libc.so.6 (0x28077000) > libattr.so.1 =3D> /lib/libattr.so.1 (0x281aa000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x28055000) Hmm, so RH & Gentoo are OK, but SUSE is not. I have seen oddities while trying to build Gentoo stage 1 though - I could = not=20 get the most recent one to build. It would install binaries with whacky=20 permissions. linux_ktrace shows both creating the file with the same permissions (100644) 1925 cp-rh8 CALL linux_open(0xbfbfeaeb,0x8041,0x81a4) 1925 cp-rh8 NAMI "def" 1925 cp-rh8 RET linux_open 4 1923 cp-suse9.3 CALL linux_open(0xbfbfeaeb,0x8041,0x81a4) 1923 cp-suse9.3 NAMI "def" 1923 cp-suse9.3 RET linux_open 4 However the SUSE binary chown's the file 1923 cp-suse9.3 CALL linux_chmod(0xbfbfeaeb,0xbfbfe430) 1923 cp-suse9.3 NAMI "def" 1923 cp-suse9.3 RET linux_chmod 0 Obviously the chmod is broken.. It looks like it's passing a pointer as the mode_t (!) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart5477054.gcDxGBhEZW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDO0Ix5ZPcIHs/zowRAh5aAJ9RAAdGiPzXR6vv3YO9ceoitVygOACdG24r aJ98s7maUs1Fc/cMqegQG7I= =JyHM -----END PGP SIGNATURE----- --nextPart5477054.gcDxGBhEZW--