Re: [darwin-kernel] devfs_make_node mutilates pathname on Leopard?
Re: [darwin-kernel] devfs_make_node mutilates pathname on Leopard?
- Subject: Re: [darwin-kernel] devfs_make_node mutilates pathname on Leopard?
- From: Steve Checkoway <email@hidden>
- Date: Wed, 12 Dec 2007 08:27:29 -0800
On Dec 12, 2007, at 8:17 AM, Alexander v. Below wrote:
under OS X 10.5, when I install a file system device with
procDevice = devfs_make_node(myDevice, DEVFS_CHAR, UID_ROOT,
GID_WHEEL, 0666, path)
where "path" is an actual path (like foo/bar/myDevice), then the
device gets created in /dev/fo/ba/myDevice. This does not happen in
10.4
Is this just a plain bug, or am I doing something wrong?
This has come up a number of times on the list recently. As I recall,
this is both not supported and an off-by-one error introduced when
switching from some standard library function to some supposedly
"safe" version which was supposed to prevent these sorts of errors.
See the list archive for more details.
--
Steve Checkoway
"Anyone who says that the solution is to educate the users
hasn't ever met an actual user." -- Bruce Schneier
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden