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.
605 B
605 B