From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Warning on 'mktemp' [Cygwin] Date: Sun, 23 May 2010 13:58:57 +0200 Message-ID: <4BF91881.5020902@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1274615959 18505 80.91.229.12 (23 May 2010 11:59:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 May 2010 11:59:19 +0000 (UTC) To: Emacs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 23 13:59:18 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OG9pt-0004iN-Ft for ged-emacs-devel@m.gmane.org; Sun, 23 May 2010 13:59:17 +0200 Original-Received: from localhost ([127.0.0.1]:33246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG9ps-00074V-Tt for ged-emacs-devel@m.gmane.org; Sun, 23 May 2010 07:59:16 -0400 Original-Received: from [140.186.70.92] (port=38823 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OG9pm-00073n-DC for emacs-devel@gnu.org; Sun, 23 May 2010 07:59:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OG9pl-0001l7-CJ for emacs-devel@gnu.org; Sun, 23 May 2010 07:59:10 -0400 Original-Received: from smtp-out109.alice.it ([85.37.17.109]:4747) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OG9pl-0001kr-1i for emacs-devel@gnu.org; Sun, 23 May 2010 07:59:09 -0400 Original-Received: from fbcmmo06.fbc.local ([192.168.184.137]) by smtp-out109.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sun, 23 May 2010 13:59:07 +0200 Original-Received: from FBCMCL01B01.fbc.local ([192.168.69.82]) by fbcmmo06.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 23 May 2010 13:59:06 +0200 Original-Received: from [82.57.154.3] ([82.57.154.3]) by FBCMCL01B01.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 23 May 2010 13:59:07 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 X-OriginalArrivalTime: 23 May 2010 11:59:07.0253 (UTC) FILETIME=[58DAD250:01CAFA6F] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ 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: news.gmane.org gmane.emacs.devel:125106 Archived-At: On Cygwin I find this warning: [...] /tmp/emacs/lib-src/movemail.c: In function ‘main’: /tmp/emacs/lib-src/movemail.c:305: warning: call to ‘mktemp’ declared with attribute warning: the use of `mktemp' is dangerous; use `mkstemp' instead [...] Note that 'configure' says: "checking for mkstemp... yes", so I have applied this patch: ================ $ cat movemail.c.patch --- movemail.c.orig 2010-04-02 23:54:26.000000000 +0200 +++ movemail.c 2010-05-23 12:35:06.296875000 +0200 @@ -302,7 +302,7 @@ p--; *p = 0; strcpy (p, "EXXXXXX"); - mktemp (tempname); + mkstemp (tempname); unlink (tempname); while (1) ================ and the warning disappeared. But is it safe apply it, at least locally on Cygwin? Thanks, Angelo.