From: "Juan Céspedes" <cespedes@lsub.org>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] ftpfs ahould not expose "." and ".." directories
Date: Mon, 28 Apr 2008 12:38:49 +0200 [thread overview]
Message-ID: <68ac7f3d0804280338l4a636c4bn5b6b2ed0feea2b37@mail.gmail.com> (raw)
In-Reply-To: <A9BF457B-2969-4E9B-98D8-CB0C87E2DEFA@mac.com>
On Mon, Apr 28, 2008 at 12:19 PM, Pietro Gagliardi <pietro10@mac.com> wrote:
> You do realize using strncmp means that a filename like .abc or ..whatever
> will also get hidden?
False. He used strncmp(".", field[8], 2), which matches the first 2
bytes, i.e.,
'.' and '\0'.
But I agree with you: strcmp() would be better here.
Juan
next prev parent reply other threads:[~2008-04-28 10:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-28 8:48 eekee57
2008-04-28 10:19 ` Pietro Gagliardi
2008-04-28 10:38 ` Juan Céspedes [this message]
2008-04-28 10:50 ` Charles Forsyth
2008-04-28 13:54 ` Charles Forsyth
2008-04-28 14:12 ` erik quanstrom
2008-04-29 8:32 ` eekee57
2008-04-29 10:16 ` roger peppe
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=68ac7f3d0804280338l4a636c4bn5b6b2ed0feea2b37@mail.gmail.com \
--to=cespedes@lsub.org \
--cc=9fans@9fans.net \
/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).