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 18:08:04 +0100
Thanks. Would you have a Radar ID so I can just hop on that bandwagon?
Alex
On 12.12.2007, at 17:41, Steve Checkoway wrote:
On Dec 12, 2007, at 8:32 AM, Alexander v. Below wrote:
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?
Turns out I can't find it when searching the archives either. But
the first thread I saw about it was written by Nick Blievers on
November 8 with the subject, "devfs_make_node()". No, I take that
back, he posted it first in May, but was told not to talk about
Leopard on a public list.
At any rate, the bug was given as
--- /Developer/Darwin-8.9.0/xnu-792.17.14/bsd/miscfs/devfs/
devfs_tree.c 2007-04-18 09:19:56.000000000 +0800
+++ /Developer/Darwin-9.0.0/xnu-1228//bsd/miscfs/devfs/
devfs_tree.c 2007-10-30 11:58:56.000000000 +0800
@@ -266,8 +292,7 @@
while (*scan != '/' && *scan)
scan++;
- strncpy(component, start, scan - start);
- component[ scan - start ] = '\0';
+ strlcpy(component, start, scan - start);
if (*scan == '/')
scan++;
Looks like there is already a radar filed about this.
The second time it came up was by David Rose on December 5 with the
subject, "Checking if a file exists from the kernel."
Hope this helps.
--
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