From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: Simple "view this image externally" question
Date: Mon, 13 Jul 2009 10:16:33 +0900 [thread overview]
Message-ID: <b4mmy79qt5a.fsf@jpl.org> (raw)
In-Reply-To: <877hyg2uo9.fsf@lifelogs.com>
>>>>> Ted Zlatanov wrote:
> Do you mean that if the image is named "; rm -rf /" Gnus will run
> "display ; rm -rf /"?
It won't happen for good or for evil at least in the UNIX-like
system. When playing a part using an external command, Gnus
writes its contents to a temp file and passes the temp file name
to the command. The temp file name is generated based on the one
that is the right side of "/". Cf.:
(defun gnus-insert-mime-button (handle gnus-tmp-id &optional displayed)
""))
[...]
(when (string-match ".*/" gnus-tmp-name)
(setq gnus-tmp-name (replace-match "" t t gnus-tmp-name)))
Similarly the file name "; rm -fr /home/who/Mail" will cause no
harm. I don't know what DOS machines do with the name `c:\', though.
next prev parent reply other threads:[~2009-07-13 1:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 21:03 Paul R
2009-07-09 23:35 ` Katsumi Yamaoka
2009-07-10 19:40 ` Ted Zlatanov
2009-07-13 1:16 ` Katsumi Yamaoka [this message]
2009-07-13 9:40 ` Paul R
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mmy79qt5a.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
/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.
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 NNTP newsgroup(s).