From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 22:38:45 2017 Received: (at submit) by debbugs.gnu.org; 13 Aug 2017 02:38:45 +0000 Received: from localhost ([127.0.0.1]:59060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dginc-00030u-SA for submit@debbugs.gnu.org; Sat, 12 Aug 2017 22:38:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgiXM-0002tI-OQ for submit@debbugs.gnu.org; Sat, 12 Aug 2017 22:21:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgiXC-0005uz-Mn for submit@debbugs.gnu.org; Sat, 12 Aug 2017 22:21:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgiXC-0005uu-Im for submit@debbugs.gnu.org; Sat, 12 Aug 2017 22:21:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgiX7-00070I-Jl for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 22:21:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgiX2-0005ny-5j for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 22:21:41 -0400 Received: from smtp.in-ulm.de ([217.10.8.16]:37920) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgiX1-0005me-Nw for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 22:21:36 -0400 X-Virus-Scanned: Debian amavisd-new at smtp.in-ulm.de DKIM-Filter: OpenDKIM Filter v2.9.1 smtp.in-ulm.de B1E1B4382B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=in-ulm.de; s=default; t=1502590892; bh=HGAXTXG5txNYqQy4M+S9npxmPqrpl4cOK6VdBcw7ieo=; h=From:To:Subject:Date:From; b=S0P6+0rNdYhS38Y5ECJTuDeaK19DDFLB18Z0jc7yufKO89IG0Q37B7/tyzKfGP5nJ tWEOWN4cOf90WBlmmkXV2XAqhnW5crbq+EcVYO5FNjfL7SzBdHRVbEuqecwQp8zNSK RR0i6Em/bsudrqnhoK1j27KPqUI+UEL65xVsS8M8= From: Benjamin Andresen Authentication-Results: smtp.in-ulm.de; dkim=permerror (bad message/signature format) To: bug-gnu-emacs@gnu.org Subject: 26.0.50; make-temp-file fails when argument is "" (Permission denied) Date: Sun, 13 Aug 2017 04:21:02 +0200 Message-ID: <878tio438x.fsf@agro> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 12 Aug 2017 22:38:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) --=-=-= Content-Type: text/plain; format=flowed I noticed this when using password-store.el[1] which I use to look up passwords using pass[2] The file hasn't been updated since 2015 and I know it's been working so I assume a recent change caused this. Merely putting "x" instead of "" as the argument works fine. [1] https://git.zx2c4.com/password-store/tree/contrib/emacs [2] https://www.passwordstore.org/ Steps to reproduce Starting from emacs -Q: M-: (make-temp-file "") ;; Debugger entered--Lisp error: (file-error "Creating file with prefix" "Permission denied" "/tmp") ;; make-temp-file-internal("/tmp" nil "") ;; make-temp-file("") ;; eval((make-temp-file "") nil) ;; eval-expression((make-temp-file "") nil nil 127) In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.18) of 2017-08-13 built on agro Repository revision: a6ad98ad66e1d0c0dac5f25ba91e11d0cf9da725 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Arch Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Entering debugger... Back to top level Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-xft --with-modules --with-x-toolkit=gtk3 --without-gconf --without-gsettings --without-gpm --without-m17n-flt --with-xwidgets --without-compress-install 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS LIBSYSTEMD Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu cl-print byte-opt gv bytecomp byte-compile cl-loaddefs cl-lib cconv debug time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 96356 5925) (symbols 48 20459 1) (miscs 40 48 104) (strings 32 29164 1340) (string-bytes 1 770963) (vectors 16 14155) (vector-slots 8 491071 8271) (floats 8 51 65) (intervals 56 237 0) (buffers 992 12)) -- Best regards, Benny 0x9EC76EA52B8F32A1 6315 887D 6E46 6967 7AC0 3E76 9EC7 6EA5 2B8F 32A1 --=-=-= Content-Type: multipart/related; boundary="==-=-=" --==-=-= Content-Type: text/html

I noticed this when using password-store.el[1] which I use to look up
passwords using pass[2]

The file hasn't been updated since 2015 and I know it's been working so
I assume a recent change caused this.
Merely putting "x" instead of "" as the argument works fine.

[1] https://git.zx2c4.com/password-store/tree/contrib/emacs
[2] https://www.passwordstore.org/

Steps to reproduce

Starting from emacs -Q:
M-: (make-temp-file "")
;; Debugger entered–Lisp error: (file-error "Creating file with prefix" "Permission denied" "/tmp")
;; make-temp-file-internal("/tmp" nil "")
;; make-temp-file("")
;; eval((make-temp-file "") nil)
;; eval-expression((make-temp-file "") nil nil 127)

In GNU Emacs 26.0.50 (build 1, x8664-pc-linux-gnu, GTK+ Version 3.22.18)
of 2017-08-13 built on agro
Repository revision: a6ad98ad66e1d0c0dac5f25ba91e11d0cf9da725
Windowing system distributor 'The X.Org Foundation', version 11.0.11903000
System Description: Arch Linux

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Entering debugger…
Back to top level

Configured using:
'configure –prefix=/usr –sysconfdir=/etc –libexecdir=/usr/lib
–localstatedir=/var –mandir=/usr/share/man –with-gameuser=:games
–with-sound=alsa –with-xft –with-modules –with-x-toolkit=gtk3
–without-gconf –without-gsettings –without-gpm –without-m17n-flt
–with-xwidgets –without-compress-install 'CFLAGS=-march=x86-64
-mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt'
CPPFLAGS=-DFORTIFYSOURCE=2
LDFLAGS=-Wl,-O1,–sort-common,–as-needed,-z,relro,-z,now'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS NOTIFY ACL GNUTLS
LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKITSCROLLBARS GTK3 X11 MODULES
XWIDGETS LIBSYSTEMD

Important settings:
value of $LCCOLLATE: C
value of $LANG: enUS.UTF-8
locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message subr-x puny seq dired
dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived
epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode
easymenu cl-print byte-opt gv bytecomp byte-compile cl-loaddefs cl-lib
cconv debug time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify dynamic-setting font-render-setting
xwidget-internal move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 96356 5925)
(symbols 48 20459 1)
(miscs 40 48 104)
(strings 32 29164 1340)
(string-bytes 1 770963)
(vectors 16 14155)
(vector-slots 8 491071 8271)
(floats 8 51 65)
(intervals 56 237 0)
(buffers 992 12))


Best regards,
Benny
0x9EC76EA52B8F32A1
6315 887D 6E46 6967 7AC0 3E76 9EC7 6EA5 2B8F 32A1

--==-=-=-- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 13 03:26:33 2017 Received: (at 28073-done) by debbugs.gnu.org; 13 Aug 2017 07:26:33 +0000 Received: from localhost ([127.0.0.1]:59127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgnI9-0005Nk-Aj for submit@debbugs.gnu.org; Sun, 13 Aug 2017 03:26:33 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgnI7-0005Ne-Ry for 28073-done@debbugs.gnu.org; Sun, 13 Aug 2017 03:26:32 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1D440160759; Sun, 13 Aug 2017 00:26:23 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id m1_NUB6Wc__c; Sun, 13 Aug 2017 00:26:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1781C160861; Sun, 13 Aug 2017 00:26:22 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EG2Ywd6cT1u6; Sun, 13 Aug 2017 00:26:22 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EBD30160759; Sun, 13 Aug 2017 00:26:21 -0700 (PDT) To: Benjamin Andresen From: Paul Eggert Subject: Re: 26.0.50; make-temp-file fails when argument is "" (Permission denied) Organization: UCLA Computer Science Department Message-ID: <841331dd-34e6-ef6c-e65b-022c345dc881@cs.ucla.edu> Date: Sun, 13 Aug 2017 00:26:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 28073-done Cc: 28073-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Yes, I introduced that bug in make-temp-file recently. Sorry about that. It should be fixed in master now: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ebf53ed4f6469d24c3a76835eab014d82aed551c From unknown Mon Jun 23 09:35:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 10 Sep 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator