From owner-freebsd-questions@FreeBSD.ORG Sat Aug 4 22:30:43 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B65F16A41B for ; Sat, 4 Aug 2007 22:30:43 +0000 (UTC) (envelope-from don.hinton@vanderbilt.edu) Received: from mailgate03.smtp.vanderbilt.edu (mailgate03.smtp.Vanderbilt.Edu [129.59.1.73]) by mx1.freebsd.org (Postfix) with ESMTP id 52E9813C465 for ; Sat, 4 Aug 2007 22:30:42 +0000 (UTC) (envelope-from don.hinton@vanderbilt.edu) Received: from smtp09.smtp.vanderbilt.edu (smtp09.smtp.Vanderbilt.Edu [129.59.1.239]) by mailgate03.smtp.vanderbilt.edu (8.13.8/8.13.8) with ESMTP id l74MUe7L021139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 4 Aug 2007 17:30:40 -0500 Received: from smtp09.smtp.vanderbilt.edu (localhost [127.0.0.1]) by smtp09.smtp.vanderbilt.edu (8.12.11/8.12.11/VU-3.7.9C+d3.7.9) with ESMTP id l74MUeRg005273; Sat, 4 Aug 2007 17:30:40 -0500 (CDT) Received: from [192.168.0.3] (c-69-245-3-33.hsd1.tn.comcast.net [69.245.3.33]) by smtp09.smtp.vanderbilt.edu (8.12.11/8.12.11/VU-3.7.9.3B+d3.7.9) with ESMTP id l74MUd2E005270 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Aug 2007 17:30:40 -0500 (CDT) From: Don Hinton Organization: ISIS To: freebsd-questions@freebsd.org Date: Sat, 4 Aug 2007 17:30:29 -0500 User-Agent: KMail/1.9.7 References: <20070804190634.69234e1e@gumby.homeunix.com.> <200708041548.11996.don.hinton@vanderbilt.edu> <20070804221341.6880cbb4@gumby.homeunix.com.> In-Reply-To: <20070804221341.6880cbb4@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708041730.29754.don.hinton@vanderbilt.edu> X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5502:2.3.11, 1.2.37, 4.0.164 definitions=2007-08-03_06:2007-07-30, 2007-08-03, 2007-08-03 signatures=0 X-PPS: No, score=0 Cc: RW Subject: Re: How does Sendmail know how it was invoked? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2007 22:30:43 -0000 > I don't think that's right. As I understand it, the argv argument to > execve() is passed-on directly as the child processes arguments, and > the parent can write whatever it likes into argv[0] - it's only > convention that it's a filename. So mailwrapper passes its own > argv[0] as sendmail's argv[0]. And so sendmail behaves as if it had been > invoked as mailq or whatever. You're exactly right. I misread the man file and did a little test to confirm it. thanks... don -- Don Hinton or Institute for Software Integrated Systems (ISIS), Vanderbilt University tel: 615.480.5667 or 615.870.9728