From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Newsgroups: gmane.emacs.devel Subject: Re: $USERPROFILE for $HOME on W32 Date: Thu, 25 Nov 2004 12:45:48 -0500 Message-ID: References: <87vfbycsgj.fsf-monnier+emacs@gnu.org> <87mzx69bkn.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101411220 11662 80.91.229.6 (25 Nov 2004 19:33:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2004 19:33:40 +0000 (UTC) Cc: emacs-devel@gnu.org, Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 25 20:33:33 2004 Return-path: Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CXOry-0006sk-01 for ; Thu, 25 Nov 2004 20:01:31 +0100 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.13.1/8.13.1/GN) with ESMTP id iAPHkYm1004219 for ; Thu, 25 Nov 2004 18:46:34 +0100 (CET) (envelope-from emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXNqf-00040F-Of for ged-emacs-devel@m.gmane.org; Thu, 25 Nov 2004 12:56:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CXNqN-0003yz-Dc for emacs-devel@gnu.org; Thu, 25 Nov 2004 12:55:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CXNqM-0003ya-LT for emacs-devel@gnu.org; Thu, 25 Nov 2004 12:55:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXNqM-0003yX-JE for emacs-devel@gnu.org; Thu, 25 Nov 2004 12:55:46 -0500 Original-Received: from [206.47.199.164] (helo=simmts6-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CXNgj-0001xQ-OQ; Thu, 25 Nov 2004 12:45:49 -0500 Original-Received: from empanada.home ([65.92.240.220]) by simmts6-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041125174549.TKRH1597.simmts6-srv.bellnexxia.net@empanada.home>; Thu, 25 Nov 2004 12:45:49 -0500 Original-Received: by empanada.home (Postfix, from userid 502) id EEDDF3831CF; Thu, 25 Nov 2004 12:45:48 -0500 (EST) Original-To: Andreas Schwab In-Reply-To: (Andreas Schwab's message of "Thu, 25 Nov 2004 17:57:36 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30358 >> + /* Set dir and shell from environment variables. */ >> + strcpy (the_passwd.pw_dir, getenv ("HOME")); > What if strlen (getenv ("HOME")) >= sizeof (the_passwd.pw_dir)? Well, tough! This code is not new: it's just moved from one place to another so it's not a new problem. Stefan