From owner-freebsd-hackers Wed Jan 16 2: 9:55 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id A476E37B402 for ; Wed, 16 Jan 2002 02:09:51 -0800 (PST) Received: from grinch ([12.234.224.67]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020116100945.BNNE3578.rwcrmhc52.attbi.com@grinch> for ; Wed, 16 Jan 2002 10:09:45 +0000 Date: Wed, 16 Jan 2002 02:09:44 -0800 Subject: Re: interesting open() issue Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v475) From: Justin C.Walker To: freebsd-hackers@FreeBSD.ORG Content-Transfer-Encoding: 7bit In-Reply-To: <20020116105923.A29210@hax0r.hu> Message-Id: <2A1269DA-0A69-11D6-A62A-00306544D642@mac.com> X-Mailer: Apple Mail (2.475) 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 My first guess is that the 'umask' differs in your various systems. "man 2 umask". Regards, Justin On Wednesday, January 16, 2002, at 01:59 AM, Foldi Tamas wrote: > Hello hackers, > > I tried the following program on Tru64, FreeBSD and linux: > > #include > #include > #include > #include > main() { > int fd; > fd = open ( "/tmp/foobar", (O_RDWR | O_CREAT), 0020); > perror("open"); > close(fd); > } > > The program ran successfully, but the created file was different. > 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 > > > -- /~\ The ASCII Justin C. Walker, Curmudgeon-at-Large \ / Ribbon Campaign X Against HTML / \ Email To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message