[dev] [PATCH] [sbase] Handle non-power-of-two tab sizes in expand(1)

2014-12-04 Thread Brandon Mulcahy
--- expand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/expand.c b/expand.c index 2449a8e..35b7a9a 100644 --- a/expand.c +++ b/expand.c @@ -28,6 +28,8 @@ main(int argc, char *argv[]) break; case 't': tabstop = estrtol(EARGF(usage(

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

2014-12-04 Thread Dimitris Papastamos
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