From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Benjamin Andresen Newsgroups: gmane.emacs.bugs Subject: bug#28073: 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-=-=" X-Trace: blaine.gmane.org 1502591968 19384 195.159.176.226 (13 Aug 2017 02:39:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2017 02:39:28 +0000 (UTC) To: 28073@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 13 04:39:20 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgio7-0004FT-GT for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Aug 2017 04:39:15 +0200 Original-Received: from localhost ([::1]:47100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgioC-0004ES-8I for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Aug 2017 22:39:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgio0-0004CR-Ax for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 22:39:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dginv-0005rZ-0A for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 22:39:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50379) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dginu-0005rD-TF for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 22:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dginu-00031C-Ea for bug-gnu-emacs@gnu.org; Sat, 12 Aug 2017 22:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Benjamin Andresen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Aug 2017 02:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150259192511592 (code B ref -1); Sun, 13 Aug 2017 02:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Aug 2017 02:38:45 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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= Authentication-Results: smtp.in-ulm.de; dkim=permerror (bad message/signature format) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135709 Archived-At: --=-=-= 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

--==-=-=-- --=-=-=--