Date: Tue, 21 Aug 2001 09:15:45 -0700 From: Jordan Hubbard <jkh@freebsd.org> To: n@nectar.com Cc: freebsd-audit@freebsd.org, dd@freebsd.org, re@freebsd.org Subject: Re: setprogname Message-ID: <20010821091545S.jkh@freebsd.org> In-Reply-To: <20010821091200.A24891@madman.nectar.com> References: <20010821091200.A24891@madman.nectar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
OK, please do.
- Jordan
From: "Jacques A. Vidrine" <n@nectar.com>
Subject: setprogname
Date: Tue, 21 Aug 2001 09:12:00 -0500
> Hello,
>
> This needs to be fixed before 4.4-RELEASE. Heimdal is currently
> broken (daemon PID files are written in the wrong location). It has
> its own implementation of setprogname, but it is not used in 4-STABLE
> or 5-CURRENT since we now have an implementation. I only mailed Dima
> yesterday about it; I'm redirecting here so soon only due to the code
> freeze.
>
>
> Index: setprogname.c
> ===================================================================
> RCS file: /home/ncvs/src/lib/libc/gen/setprogname.c,v
> retrieving revision 1.1
> diff -u -r1.1 setprogname.c
> --- setprogname.c 2001/05/15 23:41:01 1.1
> +++ setprogname.c 2001/08/21 14:07:27
> @@ -8,6 +8,8 @@
> void
> setprogname(const char *progname)
> {
> + char *p;
>
> - __progname = progname;
> + p = strrchr('/', progname);
> + __progname = p ? p : progname;
> }
>
> --
> Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010821091545S.jkh>
