Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2003 15:52:10 -0500
From:      Brent Verner <brent@rcfile.org>
To:        Greg Lewis <glewis@eyesbeyond.com>
Cc:        Ari Suutari <ari.suutari@syncrontech.com>, Ernst de Haan <ernst.dehaan@nl.wanadoo.com>, freebsd-java@FreeBSD.ORG
Subject:   Re: [patch] daemonctl.c modified to use JAVA_HOME environment variable
Message-ID:  <20030325205210.GA54355@rcfile.org>
In-Reply-To: <20030326032708.A38505@misty.eyesbeyond.com>
References:  <20030207163217.GA99329@rcfile.org> <200303241032.54982.ernst.dehaan@nl.wanadoo.com> <20030324142632.GA36430@rcfile.org> <200303250909.23762.ari.suutari@syncrontech.com> <20030326032708.A38505@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[2003-03-26 03:27] Greg Lewis said:
| On Tue, Mar 25, 2003 at 09:09:23AM +0200, Ari Suutari wrote:
| > > This should probably be a separate port, and just have each
| > > dependent package install its xml config into
| > > /usr/local/etc/daemonct.d/ and create its symlink to the
| > > daemonctl binary.

| > 	progname = (rindex(argv[0],'/') + 1);
| 
| getprogname(3)

After noticing that glibc doesn't have this utility, I ended up
using basename(3).  I also added a little more error handling,
and changed strncat to strlcat (after adding a compatibility
macro for glibc systems...).

thanks.
  brent

-- 
"Develop your talent, man, and leave the world something. Records are 
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030325205210.GA54355>