# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
# Problem: -C dir did not work with --same-order
# Reported by: Karl-Michael Schneider <schneide@phil.uni-passau.de>
# http://lists.gnu.org/archive/html/bug-tar/2004-05/msg00008.html
AT_SETUP([same-order01])
-AT_KEYWORDS([same-order01])
+AT_KEYWORDS([same-order same-order01])
AT_TAR_CHECK([
genfile -l 1024 > file1
mkdir directory
tar -xf archive --same-order -C directory || exit 1
-ls directory
+ls directory|sort 2>/dev/null
],
[0],
[file1