Thus spake Eric Melville ([EMAIL PROTECTED]):

> Should I send-pr this thing too, or is just sending it to -hackers enough?

To -audit, in general.

>       if (flags & ISKERNEL) {
> -             snprintf(buf, sizeof(buf), "%s: %s", bootfile, msg);
> +             /* ignore path to kernel */
> +             bflen = strlen(bootfile);
> +             bfshort = bootfile;
> +             while(bflen--)
> +                     if(*(bootfile+bflen) == '/')
> +                     {
> +                             bfshort = bootfile+bflen+1;
> +                             break;
> +                     }
> +             snprintf(buf, sizeof(buf), "%s: %s", bfshort, msg);

Why don't you just use basename(3)?

Alex

-- 
cat: /home/alex/.sig: No such file or directory


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to