Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 22:53:50 -0400 (EDT)
From:      Will Andrews <andrews@TECHNOLOGIST.COM>
To:        Michael Haro <mharo@area51.fremont.ca.us>
Cc:        FreeBSD Ports Team <ports@FreeBSD.ORG>
Subject:   Re: arb patch to tell who installed port and when
Message-ID:  <XFMail.990825225350.andrews@TECHNOLOGIST.COM>
In-Reply-To: <19990825111012.A73932@area51.fremont.ca.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On 25-Aug-99 Michael Haro wrote:
> How about ignoring ${USER} and using /usr/bin/logname.

Ah, very good. I was looking for something in the BASE system that would do the
equivalent of what you suggested below, getlogin(). I suppose it's because I've
never really seen much use of this program that I've ignored it in this case.

> Installed by: 
> joe-user

That's what I suggested. It might be omitted from pkg_info -I, though, even if
-a is also specified. A flag for this feature seems most appropriate (subject
to the standard rules other information given by pkg_info is).

> How about using getlogin() to find out who.

Note that system calls won't help us unless we can call a program that already
exists in the base system. But, since you've found one... no need to write a
new program whose only purpose is to return getlogin(). :-)

> Warning could be an option but I'd like a flag to turn off warning.
> I'm not sure if warning should be on by default or not.

Well.. what does the typical system's administration consist of? I'm pretty
sure it's more often just one person, or a group of people who have no need or
don't care for this feature.

--
Will Andrews <andrews@technologist.com>


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




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