[SR-Users] short name in syslog

Victor V. Kustov coyote at bks.tv
Wed Jun 19 15:30:23 CEST 2013


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 at bks.tv
  JID: coyote at bryansktel.ru
  I use FREE operation system: 3.9.4-calculate GNU/Linux



More information about the sr-users mailing list