From owner-freebsd-hackers Mon Jun 22 15:42:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA11298 for freebsd-hackers-outgoing; Mon, 22 Jun 1998 15:42:44 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.camalott.com (root@[208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA11265 for ; Mon, 22 Jun 1998 15:42:39 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-152.camalott.com [208.229.74.152] (may be forged)) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id RAA18992; Mon, 22 Jun 1998 17:41:24 -0500 Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.8) id RAA00749; Mon, 22 Jun 1998 17:41:49 -0500 (CDT) (envelope-from joelh) Date: Mon, 22 Jun 1998 17:41:49 -0500 (CDT) Message-Id: <199806222241.RAA00749@detlev.UUCP> To: ben@rosengart.com CC: yurtesen@ispro.net.tr, ben@rosengart.com, freebsd-hackers@FreeBSD.ORG In-reply-to: (message from Snob Art Genre on Mon, 22 Jun 1998 18:00:27 -0400 (EDT)) Subject: Re: - pop3 - URGENT From: Joel Ray Holveck Reply-to: joelh@gnu.org References: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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