unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@users.sourceforge.net>
To: "rrandresf\@gmail.com" <rrandresf@gmail.com>
Cc: 29070@debbugs.gnu.org
Subject: bug#29070: 26.0.90; emacs-26.0.90 pretest
Date: Mon, 30 Oct 2017 19:07:27 -0400	[thread overview]
Message-ID: <87k1zcb5g0.fsf@users.sourceforge.net> (raw)
In-Reply-To: <CALjg87X8E=FC2v3bZBSyHQycX42N5Cx99sZLxPxejXv92ar4+g@mail.gmail.com> (rrandresf@gmail.com's message of "Mon, 30 Oct 2017 16:41:05 -0600")

"rrandresf@gmail.com" <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 "‘/tmp/foo’ is not a safe directory because it is a file")
  signal(error ("‘/tmp/foo’ 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 unsafe)))
  (let* ((uid (nth 2 attrs)) (w32 (eq system-type 'windows-nt)) (unsafe (cond ((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 "‘/tmp/foo’ is not a safe directory because it is a file")
  signal(error ("‘/tmp/foo’ 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 unsafe)))
  (let* ((uid (nth 2 attrs)) (w32 (eq system-type 'windows-nt)) (unsafe (cond ((not (eq t (car attr...
    dir = "/tmp/foo"
    attrs = (nil 1 1000 1000 (23031 44726 989651 161000) (23031 44726 989651 161000) (23031 44726 989651 161000) 0 "-rw-r--r--" t 3014718 2052)
    uid = 1000
    w32 = nil
    unsafe = "it is a file"
  (let ((attrs (file-attributes dir 'integer))) (if attrs nil (let* ((old (default-file-modes)))...
    dir = "/tmp/foo"
    attrs = (nil 1 1000 1000 (23031 44726 989651 161000) (23031 44726 989651 161000) (23031 44726 989651 161000) 0 "-rw-r--r--" t 3014718 2052)
  server-ensure-safe-dir("/tmp/foo")






  reply	other threads:[~2017-10-30 23:07 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30 20:02 bug#29070: 26.0.90; emacs-26.0.90 pretest rrandresf
2017-10-30 20:14 ` Noam Postavsky
2017-10-30 21:25   ` rrandresf
2017-10-30 21:38     ` Noam Postavsky
2017-10-30 22:41       ` rrandresf
2017-10-30 23:07         ` Noam Postavsky [this message]
2017-10-30 23:36           ` andrés ramírez
2017-10-30 23:52             ` Noam Postavsky
2017-10-31  0:18               ` andrés ramírez
2017-10-31  0:41                 ` Noam Postavsky
2017-10-31  1:59                   ` andrés ramírez
2017-10-31  2:11                     ` Noam Postavsky
2017-10-31  2:32                       ` andrés ramírez
2017-10-31  2:49                         ` Noam Postavsky
2017-10-31  3:05                           ` andrés ramírez
2017-10-31  3:21                             ` Noam Postavsky
2017-10-31  3:27                               ` andrés ramírez
2017-10-31 10:30                                 ` Noam Postavsky
2017-10-31 12:12                                   ` andrés ramírez
2017-10-31 13:11                                     ` Andreas Schwab
2017-10-31 13:38                                       ` andrés ramírez
2017-10-31 14:27                                         ` Andreas Schwab
2017-10-31 15:18                                           ` andrés ramírez
2017-10-31 20:21                                             ` Andreas Schwab
2017-11-01  1:00                                               ` andrés ramírez
2017-11-01 23:47                                                 ` Noam Postavsky
2017-11-01 20:48                                             ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k1zcb5g0.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=29070@debbugs.gnu.org \
    --cc=rrandresf@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).