Date: Wed, 16 Jan 2002 10:59:23 +0100 From: Foldi Tamas <crow@localhost.hu> To: freebsd-hackers@freebsd.org Subject: interesting open() issue Message-ID: <20020116105923.A29210@hax0r.hu>
next in thread | raw e-mail | index | archive | help
--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 <stdio.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020116105923.A29210>