Re: patch: remove .. from /
- From: Pavel Roskin <proski gnu org>
- To: bulia byak <bulia dr com>
- Cc: mc gnome org
- Subject: Re: patch: remove .. from /
- Date: Sun, 19 Jan 2003 07:42:52 -0500 (EST)
Hello!
I have about 200 messages in my mailbox, and I'll be back on January 18.
Now it's more like 400.
- if (!dotdot_found)
+ if (!dotdot_found && strcmp (vfs_canon ("."), "/")) /* do not add ..
This looks reasonable.
Except that if the dotdot_found was what it seems to be, ".." would not be
added to the root directory only if ".." didn't already appear in the
listing for "/". Fortunately, the dotdot_found variable is now useless,
since handle_dirent() doesn't process "..", so your patch works.
I've applied a similar patch but removed dotdot_found to avoid confusion.
--
Regards,
Pavel Roskin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]