From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29070: 26.0.90; emacs-26.0.90 pretest Date: Mon, 30 Oct 2017 19:07:27 -0400 Message-ID: <87k1zcb5g0.fsf@users.sourceforge.net> References: <878tfso14o.fsf@chulpaca.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509404896 10934 195.159.176.226 (30 Oct 2017 23:08:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2017 23:08:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29070@debbugs.gnu.org To: "rrandresf\@gmail.com" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 31 00:08:12 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 1e9JA4-0001ij-4p for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Oct 2017 00:08:04 +0100 Original-Received: from localhost ([::1]:42955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9JAB-0005T7-Am for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Oct 2017 19:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9JA5-0005T2-Hs for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 19:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9JA2-0003jL-2E for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 19:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9JA1-0003jA-V5 for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 19:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e9JA1-0004ui-J0 for bug-gnu-emacs@gnu.org; Mon, 30 Oct 2017 19:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Oct 2017 23:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29070 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29070-submit@debbugs.gnu.org id=B29070.150940485818853 (code B ref 29070); Mon, 30 Oct 2017 23:08:01 +0000 Original-Received: (at 29070) by debbugs.gnu.org; 30 Oct 2017 23:07:38 +0000 Original-Received: from localhost ([127.0.0.1]:42874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9J9d-0004u1-UN for submit@debbugs.gnu.org; Mon, 30 Oct 2017 19:07:38 -0400 Original-Received: from mail-io0-f169.google.com ([209.85.223.169]:47124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9J9c-0004tn-8V for 29070@debbugs.gnu.org; Mon, 30 Oct 2017 19:07:36 -0400 Original-Received: by mail-io0-f169.google.com with SMTP id h70so30952062ioi.4 for <29070@debbugs.gnu.org>; Mon, 30 Oct 2017 16:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=5OisNPwrlYDdZ5N72YHWVwU2LYUopmr4LsykH4SBbN8=; b=h8UmQIRGnXctLBfNy0E0TOnISPNId/yHUHDEqc/8UX0ibh3DvYNPit8axUZ9S79lMQ M5ARA5GYj5GDs43K6DOzAOGMSoQ5VsPN57cJJsF5RzRspUmEnZujzHVG04j9mEFLlzIi fjMb4AClrUsNbslElDTieaI4yanh/2aifmJ9fqSTtMXpxS60vX8PZHDZS1LJElRmasdw DM/bu5l7nyQ6Umd4+C1ipb4Nd5rb31jHaH2kFIykdFuLJKzgeAJhTZZUqg+3e3yh8pU3 ZWaa03M9Lp3iFzuH+/9TrjQXfzw2Ksg7925ZERONaWhJ3iTDBDo+xRAfwLF9GlkN/2dl LTfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=5OisNPwrlYDdZ5N72YHWVwU2LYUopmr4LsykH4SBbN8=; b=QzSP8DPywVPXXMsGw7lXriYdObDj40KwrxPmW7b6pak0thoYNFmwzFdNmDC6MGpyZ8 FW6nYaUAANoB5NGrXIlNIQG4t5lfkkfGaoG2bck/HW4wdyN03+jdK0rk6wV7MnpwMgts 36wBa4da3l65PwiJVCtt1RcT2x7+qUPQtmxh+ot5Rqil+Ouzyd7LxZWovOFNiakhPWAY iRYiIrLYOPCIU1BbOX0LyhatjQQaGJXgDjyJOB1av7XMZulk+HUI9Hh9BHauciYJUjPp 3qKloyt6BEiPmLieB2WmsnZ/EKj5v8NGrRM2mTTx6IEYhB5yMuYvc2Q9iy3aoXBKLrmF ZeqA== X-Gm-Message-State: AMCzsaXSGXuSfa9ZwVormn4xsD556vbj3VRopRyP2J7K3rdarnufaJ6w 5OmHxiB6oYYxjsSGfiz1BTl+hw== X-Google-Smtp-Source: ABhQp+Sj6AOEHMBm5Oh32yVXnvDZGGdWwlFaRnCB+E5S5IBNCdgNzOpIFUmAHJgxPmeTd2Cucm2zkw== X-Received: by 10.107.47.147 with SMTP id v19mr12921753iov.280.1509404850369; Mon, 30 Oct 2017 16:07:30 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id o190sm16183ioe.71.2017.10.30.16.07.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Oct 2017 16:07:29 -0700 (PDT) In-Reply-To: (rrandresf@gmail.com's message of "Mon, 30 Oct 2017 16:41:05 -0600") 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:139225 Archived-At: "rrandresf@gmail.com" writes: > (t 2 1000 1000 > (23031 33692 430033 322000) > (23031 41122 259655 752000) > (23031 41122 259655 752000) > 60 "drwx------" t 545119 28) > I can't work out how you could be getting this error, the message you posted should only occur if the car of the attribute list is not t: (unsafe (cond ((not (eq t (car attrs))) (format "it is a %s" (if (stringp (car attrs)) "symlink" "file"))) Could you do M-x load-library RET server.el RET to load the source and get a more detailed backtrace please. It should like something like this: Debugger entered--Lisp error: (error "=E2=80=98/tmp/foo=E2=80=99 is not a s= afe directory because it is a file") signal(error ("=E2=80=98/tmp/foo=E2=80=99 is not a safe directory because= it is a file")) error("`%s' is not a safe directory because %s" "/tmp/foo" "it is a file") (progn (error "`%s' is not a safe directory because %s" dir unsafe)) (if unsafe (progn (error "`%s' is not a safe directory because %s" dir un= safe))) (let* ((uid (nth 2 attrs)) (w32 (eq system-type 'windows-nt)) (unsafe (co= nd ((not .... (let ((attrs (file-attributes dir 'integer))) (if attrs nil (let* ((old (= default-file-... server-ensure-safe-dir("/tmp/foo") ... And then hit 'v' on the "(let" lines to show local variables, so that it looks like this: Debugger entered--Lisp error: (error "=E2=80=98/tmp/foo=E2=80=99 is not a s= afe directory because it is a file") signal(error ("=E2=80=98/tmp/foo=E2=80=99 is not a safe directory because= it is a file")) error("`%s' is not a safe directory because %s" "/tmp/foo" "it is a file") (progn (error "`%s' is not a safe directory because %s" dir unsafe)) (if unsafe (progn (error "`%s' is not a safe directory because %s" dir un= safe))) (let* ((uid (nth 2 attrs)) (w32 (eq system-type 'windows-nt)) (unsafe (co= nd ((not (eq t (car attr... dir =3D "/tmp/foo" attrs =3D (nil 1 1000 1000 (23031 44726 989651 161000) (23031 44726 989= 651 161000) (23031 44726 989651 161000) 0 "-rw-r--r--" t 3014718 2052) uid =3D 1000 w32 =3D nil unsafe =3D "it is a file" (let ((attrs (file-attributes dir 'integer))) (if attrs nil (let* ((old (= default-file-modes)))... dir =3D "/tmp/foo" attrs =3D (nil 1 1000 1000 (23031 44726 989651 161000) (23031 44726 989= 651 161000) (23031 44726 989651 161000) 0 "-rw-r--r--" t 3014718 2052) server-ensure-safe-dir("/tmp/foo")