1 Oct 2007 08:46
[PATCH] ustr cleanups (policyrep branch)
Here are two cleanups for ustr usage within libsemanage on the policyrep branch. The first is a corner case where you have two or more replacements in the "replace_all" function of genhomedircon, previously one of those multiple replacements (in theory) could fail due to malloc() returning NULL and that would be missed. The fix probably makes the free test more readable too. The second is that semanage_is_prefix() was previously defined by calling ustr functions (inefficiently, even), and so had to allocate a ustr to do it's work ... the fix just calls strncmp() directly. -- -- James Antill <jantill@...>
RSS Feed