Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] nvi to dont open dirs



On Jan 5, 11:50pm, adam.hoka%gmail.com@localhost (Adam Hoka) wrote:
-- Subject: Re: [PATCH] nvi to dont open dirs

| Christos Zoulas wrote:
| 
| > In article <200812201857.53498.sverre%viewmark.com@localhost>,
| > Sverre Froyen  <sverre%viewmark.com@localhost> wrote:
| > >On Saturday 20 December 2008, Adam Hoka wrote:
| > >> Hi!
| > >>
| > >> I think this patch wont cause any harm, but I think its better to ask.
| > >> Anyone objects this? Basically this wont let nvi open a directory for
| > >> "editing". I happen to open dirs accidentaly. :-)
| > >
| > >Personally, I'd like to see the ability to open directories preserved.  =
| There=20
| > >may be good reasons to avoid writing to a directory.  If so, perhaps tha=
| t=20
| > >could be prevented.
| > >
| >=20
| > The kernel prevents that. I am opposed to the patch too, because it is
| > behavior changing, and reading a directory is not harmful.
| >=20
| > christos
| >=20
| 
| And when is it useful to open a directory with vi?

Until we become linux where read on a directory returns an error, the
editor should behave the same way as cat.

christos


Home | Main Index | Thread Index | Old Index