All of lore.kernel.org
 help / color / mirror / Atom feed
From: evilninja <evilninja@gmx.net>
To: reiserfs-list@namesys.com
Subject: Re: EACCESS vs ENOENT for nonexistent files-within-files
Date: Wed, 15 Sep 2004 12:55:33 +0200	[thread overview]
Message-ID: <41481FA5.2000504@gmx.net> (raw)
In-Reply-To: <16709.63624.953839.299199@thebsh.namesys.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nikita Danilov wrote:
>
> If newfile.txt has no +x bit set, then justification is obvious: UNIX
> requires +x bit for lookup, and EACCES is returned when trying to lookup
> anything in a directory (or, in this case, a regular file) without +x
> bit:
>
> $ mkdir zzz
> $ chmod a-x zzz
> $ cat zzz/.htaccess
> cat: zzz/.htaccess: Permission denied
>
> This is how things worked for almost 30 years.
>
> If you observe EACCES on the file with +x bit---this is unknown bug and
> test-case is most welcome.

at least on ext3 and nfs3 i have this:

evil@prinz:/tmp$ touch file.txt
evil@prinz:/tmp$ cat file.txt/.htaccess
cat: file.txt/.htaccess: Not a directory
evil@prinz:/tmp$ chmod +x file.txt
evil@prinz:/tmp$ cat file.txt/.htaccess
cat: file.txt/.htaccess: Not a directory

...which sounds *a bit* more reasonable than "permission denied", but
   "cat: file.txt/: Not a directory"
or
   "cat: file.txt/.htaccess: No such file or directory"

would make even more sense IMHO.

Christian.
- --
BOFH excuse #290:

The CPU has shifted, and become decentralized.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBSB+lC/PVm5+NVoYRAvslAJwLMd7VJlOOIJhkZmYMetspLeWYzQCgsUli
SFgoAG3eMrHn1URscHeoGZM=
=yFbW
-----END PGP SIGNATURE-----

  reply	other threads:[~2004-09-15 10:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-13 14:06 EACCESS vs ENOENT for nonexistent files-within-files Joe Orton
2004-09-13 14:25 ` Wayne Scott
2004-09-13 15:21 ` Michael Weissenbacher
2004-09-13 16:13 ` Alex Zarochentsev
2004-09-13 18:52   ` Joe Orton
2004-09-13 19:44     ` Nikita Danilov
2004-09-15 10:55       ` evilninja [this message]
2004-09-15 11:41         ` Nikita Danilov
2004-09-16  0:00           ` evilninja
2004-09-13 20:58     ` Alex Zarochentsev
  -- strict thread matches above, loose matches on Subject: below --
2004-09-15 13:18 Paul Wagland
2004-09-15 14:04 ` Hans Reiser
2004-09-15 14:16   ` Paul Wagland
2004-09-15 15:12   ` Nikita Danilov
2004-09-15 14:45 ` Nikita Danilov
2004-09-15 16:15   ` daniel.poelzleithner
2004-09-15 22:40     ` Hans Reiser
2004-09-16 19:55   ` Toby Dickenson
     [not found]     ` <2f9ccaae04091615395cfd0730@mail.gmail.com>
2004-09-16 22:40       ` Perry Kundert

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=41481FA5.2000504@gmx.net \
    --to=evilninja@gmx.net \
    --cc=reiserfs-list@namesys.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.