Hello, Daniel-Constantin!
Hello,
what is it fixing actually?
it fix long name of daemon in syslog.
/usr/local/sbin/kamailio => kamailio
full path doesnot needed in logs.
Was there an end of line?
sorry?
Is basename portable?
yes, i check it
Because I see requires a new header to be included, if not maybe we can implement the function by ourselves to fix what should be fixed.
#grep libgen *.c cfg_parser.c:#include <libgen.h> --already use main.c:#include <libgen.h> --my fix ut.c:#include <libgen.h> --already use
-- WBR, Victor JID: coyote@bks.tv JID: coyote@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux