[SSSD] [PATCH] path_utils: path_concat should return empty string on ENOBUFS

Stephen Gallagher sgallagh at redhat.com
Wed Mar 7 15:08:29 UTC 2012


This patch makes several changes.

1) Change the behavior of path_concat so that it will always return an
empty string if it hits ENOBUFS.
2) Clean up the code, adding more comments.
3) Modify the unit tests to check for empty string and to make sure we
don't write past the allowed buffer if the input strings are too long.
4) Update the doxygen for path_concat so that it's clear that path will
be empty on failure.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-path_utils-path_concat-should-return-empty-string-on.patch
Type: text/x-patch
Size: 5895 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120307/ffed5f66/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20120307/ffed5f66/attachment.sig>


More information about the sssd-devel mailing list