NetBSD Problem Report #1248
From gnats Fri Jul 21 00:16:18 1995
Received: from relay3.UU.NET (relay3.UU.NET [192.48.96.8]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id AAA15313 for <gnats-bugs@gnats.netbsd.org>; Fri, 21 Jul 1995 00:16:17 -0400
Message-Id: <199507210004.UAA02594@anduin.eldar.org>
Date: Thu, 20 Jul 1995 20:04:33 -0400
From: Brad Spencer <brad@anduin.eldar.org>
Reply-To: brad@anduin.eldar.org
To: gnats-bugs@gnats.netbsd.org
Subject: Linux mkdir syscall is missing mode argument
X-Send-Pr-Version: 3.2
>Number: 1248
>Category: port-i386
>Synopsis: Linux mkdir syscall is missing mode argument
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 21 00:20:01 +0000 1995
>Closed-Date: Mon Aug 21 23:37:01 +0000 1995
>Last-Modified: Mon Aug 21 23:38:50 +0000 1995
>Originator: Brad Spencer
>Release: sup around 7/9
>Organization:
Home
>Environment:
NetBSD-current with standard stuff
System: NetBSD anduin.eldar.org 1.0A NetBSD 1.0A (ANDUIN) #2: Sun Jul 9 18:49:41 EDT 1995 brad@anduin.eldar.org:/usr/src/sys/arch/i386/compile/ANDUIN i386
>Description:
All evidence would suggest that the Linux mkdir system call has two
arguments, the path and the mode. The mode argument is missing
completly. The end result of this is that the mode of a directory
created with the Linux system call will be wrong [the directory may
not be writeable, for example, by the person who created it].
>How-To-Repeat:
Get a copy of the Linux mkdir, or anything which can make a directory,
such as Executor and note that the permission on the new directory
will probably be wrong.
>Fix:
Change the following [more or less] in /sys/compat/linux:
linux_file.c
linux_syscall.h
linux_syscallargs.h
linux_syscalls.c
linux_sysent.c
syscalls.master
to allow the mode argument to the mkdir system call.
[Sorry for not including a diff]
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: fvdl
State-Changed-When: Mon Aug 21 19:37:01 EDT 1995
State-Changed-Why:
Fixed, thanks (sorry for the slow state-change in the problem report, I forgot
to update it)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.