Re: [dev] [PATCH] [sbase] Fix basename suffix treatment

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Thu, 4 Dec 2014 08:00:55 +0000

On Wed, Dec 03, 2014 at 06:37:34PM -0500, Brandon Mulcahy wrote:
> Explicitly use "." instead of the result of basename(3) when argv[0] is
> an empty string in order to avoid a segfault.
>
> Skip suffix treatment if the result of basename(3) is "/", per POSIX.
>
> Fix the suffix check, which was previously checking for a match at any
> location in the string.

Thanks, applied!
Received on Thu Dec 04 2014 - 09:00:55 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 04 2014 - 09:12:07 CET