VFS componentname modification
VFS componentname modification
- Subject: VFS componentname modification
- From: Brian Bergstrand <email@hidden>
- Date: Fri, 2 Apr 2004 15:14:09 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a VFS plug-in that does not allow certain characters in
filenames. The biggest annoyance seems to be custom directory icons,
which are stored in the parent directory as a file named "Icon\n" --
yes that's an embedded newline. So I had this novel idea to translate
all illegal characters into '_' (special case the "Icon\n" case so they
still work). Problem is, that in order for the kernel to know about the
name change, I'm going to have to modify the incoming
componentname.cn_nameptr field. My question is, is this safe to do? I
won't be changing the length of the name, but if the name has been
cached the hash will be invalid. So am I nuts, or is this possible?
Here's the current list of chars that would be translated to '_':
"\n\r\\:*?\"><b+B)B.b""
Thanks.
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
From there to here, from here to there, funny things are everywhere. -
Dr. Seuss
As of 03:05:38 PM, iTunes is playing "Intro" from "14 Shades Of Grey"
by "Staind"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQG3JmXnR2Fu2x7aiEQLIKQCg6EoamTc62uFLcCAM8lj6sHfobLIAoPMz
fxNr404crk5hs9d4NHk2yxjb
=TGwn
-----END PGP SIGNATURE-----
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.