Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1387884
| From | Valdis.Kletnieks@vt.edu |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC] a corner case of open(2) |
| Date | 2016-04-26 20:50 +0200 |
| Message-ID | <rsgdB-42k-29@gated-at.bofh.it> (permalink) |
| References | <rsfrc-3gJ-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Tue, 26 Apr 2016 18:55:38 +0100, Al Viro said: > It is a change of user-visible behaviour, but I would be very > surprised if anything broke from that change. And it would help to simplify > the awful mess we have in there. I have to admit that over the past 3 decades of working with Unix-y systems, there's been a number of times I've had to resort to 'od -cx /your/dir/here' to debug issues (/bin/ls -fi is *almost* equivalent, but doesn't show holes in the directory) The biggest danger I can see is some shell script doing something like: foobar > $dir/$targetfile and $targetfile is unset. If we allow a program to get an open fd that refers to a directory, what are the semantics of various operations on that fd?
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC] a corner case of open(2) Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-26 20:00 +0200
Re: [RFC] a corner case of open(2) Cedric Blancher <cedric.blancher@gmail.com> - 2016-04-26 20:10 +0200
Re: [RFC] a corner case of open(2) Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-26 20:20 +0200
Re: [RFC] a corner case of open(2) Valdis.Kletnieks@vt.edu - 2016-04-26 20:50 +0200
Re: [RFC] a corner case of open(2) Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-26 21:10 +0200
Re: [RFC] a corner case of open(2) Valdis.Kletnieks@vt.edu - 2016-04-26 21:30 +0200
Re: [RFC] a corner case of open(2) Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-26 22:20 +0200
Re: [RFC] a corner case of open(2) Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-27 07:40 +0200
Re: [RFC] a corner case of open(2) Miklos Szeredi <mszeredi@redhat.com> - 2016-04-27 11:40 +0200
another patch in #for-linus (was Re: [RFC] a corner case of open(2)) Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-27 21:40 +0200
csiph-web