Re: [darwin-kernel] devfs_make_node mutilates pathname on Leopard?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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: http://search.lists.apple.com/?q=%22devfs_make_node%22 At any rate, the bug was given as Looks like there is already a radar filed about this. 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/below%40mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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: 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. --- /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++; The second time it came up was by David Rose on December 5 with the subject, "Checking if a file exists from the kernel." This email sent to below@mac.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Alexander v. Below