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: "Alexander v. Below" <email@hidden>
- Date: Wed, 12 Dec 2007 17:32:38 +0100
Sorry, I had tried to search the list before, but my keywords did not
yield anything releated to the issue.
For example, searching for "devfs_make_node" on all lists only yields
six results, none of which appear to be related:
http://search.lists.apple.com/?q="devfs_make_node"
Could you give me a hint on what to search the archives for?
Thanks
Alex
On 12.12.2007, at 17:27, Steve Checkoway wrote:
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
_______________________________________________
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
_______________________________________________
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