From 320b62f87ec8983846959323e93000c79f827484 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Thu, 12 Dec 2002 12:48:30 +0000 Subject: [PATCH] * extfs/urar.in: rar lists directories after files, so sort "list" command output by names to prevent duplications. --- vfs/ChangeLog | 5 +++++ vfs/extfs/urar.in | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 0d5cf514a..a8dd1581b 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2002-12-12 Andrew V. Samoilov + + * extfs/urar.in: rar lists directories after files, so sort "list" + command output by names to prevent duplications. + 2002-12-12 Pavel Roskin * extfs/urar.in: Strengthen quoting. Don't use full path to rar diff --git a/vfs/extfs/urar.in b/vfs/extfs/urar.in index 463d6f62d..460f7e33f 100644 --- a/vfs/extfs/urar.in +++ b/vfs/extfs/urar.in @@ -95,7 +95,9 @@ cmd="$1" shift case "$cmd" in - list) mcrarfs_list "$@" ;; + list) mcrarfs_list "$@" | sort +9 ;; # rar lists directories + # after files, so sort names + # to prevent duplication rm) mcrarfs_rm "$@" ;; rmdir) mcrarfs_rm "$@" ;; mkdir) mcrarfs_mkdir "$@" ;;