From mboxrd@z Thu Jan 1 00:00:00 1970 From: raphael.beamonte@gmail.com (=?UTF-8?q?Rapha=C3=ABl=20Beamonte?=) Date: Sat, 23 Nov 2013 17:32:23 -0500 Subject: [lttng-dev] [lttng-tools PATCH 0/5] utils_expand_path fix In-Reply-To: <20131115154539.GA6986@thessa> References: <20131115154539.GA6986@thessa> Message-ID: <1385245948-23011-1-git-send-email-raphael.beamonte@gmail.com> Hello David! Here is the fix needed to have the expected behavior for path that ends with '/.' or '/..'. I also profit to send patches for the unit test to allow to add tests using an existing tree and symlinks, adding the missing copyright in utils.c and correcting the indentation of one comment. Waiting for your comments! Thanks, Rapha?l Rapha?l Beamonte (5): Add missing copyright to utils.c Fix: comment indentation Fix: utils_expand_path now works for paths that ends with '/.' or '/..' Tests: add symlink tests for test_utils_expand_path Tests: add valid test cases to test_utils_expand_path src/common/utils.c | 30 +++++- tests/unit/test_utils_expand_path.c | 175 ++++++++++++++++++++++++++++++++++- 2 files changed, 199 insertions(+), 6 deletions(-) -- 1.7.10.4