From owner-freebsd-hackers Wed Jan 16 1:51:13 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from diablo.ovinet.hu (diablo.ovinet.hu [217.13.33.205]) by hub.freebsd.org (Postfix) with ESMTP id 6AEDB37B400 for ; Wed, 16 Jan 2002 01:51:10 -0800 (PST) Received: from diablo.ovinet.hu (crow@localhost [127.0.0.1]) by localhost (MX V4.2 AXP/OpenVMS) with ESMTP id g0G9xTtC029667 for ; Wed, 16 Jan 2002 10:59:29 +0100 Received: (from crow@localhost) by diablo.ovinet.hu (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id g0G9xNxx029665 for freebsd-hackers@freebsd.org; Wed, 16 Jan 2002 10:59:23 +0100 Date: Wed, 16 Jan 2002 10:59:23 +0100 From: Foldi Tamas To: freebsd-hackers@freebsd.org Subject: interesting open() issue Message-ID: <20020116105923.A29210@hax0r.hu> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline User-Agent: Mutt/1.3.15i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello hackers, I tried the following program on Tru64, FreeBSD and linux: #include #include #include #include main() { =20 int fd; fd =3D open ( "/tmp/foobar", (O_RDWR | O_CREAT), 0020); perror("open"); close(fd); } The program ran successfully, but the created file was different.=20 On Linux: -----w---- 1 crow crow 0 Jan 16 10:32 /tmp/foobar On Tru64/FreeBSD: ---------- 1 crow users 0 Jan 16 10:30 /tmp/foobar I'm not sure what the result supposed to be. Any ideas ? Best Regards, Tamas Foldi --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQA/AwUBPEVO+f7G8SRsJE1wEQLwtgCgjXjXUAeGn7EsQ1qgKl5jb2ehqZ0AoKCy oMSQlYCwQjwJwy5Jz+kqveii =/TYW -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message