-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsemanage: simplify string utilities functions
Use string functions from C standard library instead of ustr. This makes the code simpler and make utilities.c no longer depend on ustr library. This changes how semanage_split() behaves when delim is not empty (NULL or "") and the input string contains several successive delimiters: semanage_split("foo::::bar", ":") returned "bar" and now returns ":bar". This would not have any impact in the current code as semanage_split() is only called with delim="=" (through semanage_findval(), in libsemanage/src/genhomedircon.c), in order to split a "key=value" statement. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
- Loading branch information
1 parent
fd6bc59
commit a228bb3
Showing
1 changed file
with
13 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters