patch: remove .. from /
bulia byak
bulia at dr.com
Sun Jan 12 01:52:26 UTC 2003
Pavel, do I need to resend this to devel list and/or submit to the patch manager? Same question about the quick sort case sensitivity patch? Will they be included in 4.60?
--- dir-old.c 2002-12-25 22:19:47.000000000 -0400
+++ dir.c 2003-01-11 21:25:52.000000000 -0400
@@ -501,7 +501,7 @@
}
if (next_free) {
- if (!dotdot_found)
+ if (!dotdot_found && strcmp (vfs_canon ("."), "/")) /* do not add .. in / */
add_dotdot_to_list (list, next_free++);
do_sort (list, sort, next_free - 1, reverse, case_sensitive);
} else {
@@ -655,7 +655,7 @@
tree_store_end_check ();
g_hash_table_destroy (marked_files);
if (next_free) {
- if (!dotdot_found)
+ if (!dotdot_found && strcmp (vfs_canon ("."), "/")) /* do not add .. in / */
add_dotdot_to_list (list, next_free++);
do_sort (list, sort, next_free - 1, rev, case_sensitive);
} else
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Meet Singles
http://corp.mail.com/lavalife
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-dotdot-in-root
Type: application/octet-stream
Size: 717 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20030111/04a758bd/attachment.obj>
More information about the mc
mailing list