[Bug 235121] shells/rssh: rssh crashes on invocation due to new basename(3) POSIX behaviour

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 3 05:36:00 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235121

--- Comment #5 from jharris at widomaker.com ---
topical, I think you'll want to add your same fix from util.c before all
invocations of basename(3):

%grep -n basename *.c
log.c:96:       ident = strdup(basename((char*)name));
rssh_chroot_helper.c:162:       progname =
strdup(log_make_ident(basename(argv[0])));
util.c:166:     char    *prog;          /* basename of cmd */
util.c:189:             prog = basename(cmd);


So also in log.c and rssh_chroot_helper.c, right?

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list