Date: Mon, 22 Jun 1998 17:41:49 -0500 (CDT) From: Joel Ray Holveck <joelh@gnu.org> To: ben@rosengart.com Cc: yurtesen@ispro.net.tr, ben@rosengart.com, freebsd-hackers@FreeBSD.ORG Subject: Re: - pop3 - URGENT Message-ID: <199806222241.RAA00749@detlev.UUCP> In-Reply-To: <Pine.GSO.3.96.980622175802.270A-100000@echonyc.com> (message from Snob Art Genre on Mon, 22 Jun 1998 18:00:27 -0400 (EDT)) References: <Pine.GSO.3.96.980622175802.270A-100000@echonyc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> symlinks... I wanted to change the source code of pop3 >> there it was writing /var/mail I changed it with $HOME/mail >> but the c compiler thinks $HOME something else... >> how may I make the compiler to ignore $ sign at front of HOME? > You're trying to use a shell variable in a C program. Read the man page > for getpwent(3) to see how to get a user's home directory from the > passwd file. Or, if you're hell-bent on using the environment variable, > look at getenv(3). I suspect that the former approach is the > recommended one, though. $HOME will not be initialized when POP3 runs. You'll have to use getpwent. -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806222241.RAA00749>