module discovery works for me!
Christopher Brannon
chris at the-brannons.com
Mon Nov 29 15:47:21 CET 2010
I made a few changes to the module discovery patch.
1. Account for yesterday's refactoring.
2. We check our filenames for validity. For one thing, . and .. are
both entries returned by readdir. Code like g_strdup(entry->d_name + 3)
is invalid if entry->d_name is "." or "..".
We also insure that "sd_" is a proper prefix of the filename, and that
the name refers to a regular file. The latter test uses stat(2), which
dereferences symbolic links.
With the obvious exception of sd_generic, it is working beautifully over
here.
Thanks, Trevor and Andrei.
Who is up for reviewing this?
-- Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freebsoft.org/pipermail/speechd/attachments/20101129/a1ac25af/attachment.pgp>
More information about the Speechd
mailing list