From: Timo Hirvonen <tihirvon@gmail.com>
To: torvalds@osdl.org
Cc: junkio@cox.net, matled@gmx.net, git@vger.kernel.org, paulus@samba.org
Subject: Re: [PATCH] Fix filename verification when in a subdirectory
Date: Wed, 26 Apr 2006 21:05:41 +0300 [thread overview]
Message-ID: <20060426210541.5e145e88.tihirvon@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0604261010390.3701@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> wrote:
> +void verify_filename(const char *prefix, const char *arg)
> +{
> + const char *name;
> + struct stat st;
> +
> + if (*arg == '-')
> + die("bad flag '%s' used after filename", arg);
> + name = prefix ? prefix_filename(prefix, strlen(prefix), arg) : arg;
> + if (!lstat(name, &st))
> + return;
> + if (errno == ENOENT);
Extra semicolon.
--
http://onion.dynserv.net/~timo/
next prev parent reply other threads:[~2006-04-26 18:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-23 12:03 lstat() call in rev-parse.c Paul Mackerras
2006-04-23 16:19 ` Linus Torvalds
2006-04-24 23:23 ` Paul Mackerras
2006-04-26 15:28 ` Matthias Lederhofer
2006-04-26 15:43 ` Linus Torvalds
2006-04-26 17:15 ` [PATCH] Fix filename verification when in a subdirectory Linus Torvalds
2006-04-26 18:05 ` Timo Hirvonen [this message]
2006-04-26 18:14 ` Linus Torvalds
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=20060426210541.5e145e88.tihirvon@gmail.com \
--to=tihirvon@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=matled@gmx.net \
--cc=paulus@samba.org \
--cc=torvalds@osdl.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).