mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-21 14:53:56 +02:00
* tests/sample-test: Quote variables containing absolute build
tree paths. In the cleanup trap, make sure `cd' succeeds before `chmod'ing and `rm'ing the temporary files. * tests/chgrp/basic: Likewise. * tests/chgrp/deref: Likewise. * tests/chgrp/no-x: Likewise. * tests/chgrp/posix-H: Likewise. * tests/chgrp/recurse: Likewise. * tests/chmod/c-option: Likewise. * tests/chmod/equal-x: Likewise. * tests/chmod/equals: Likewise. * tests/chmod/inaccessible: Likewise. * tests/chmod/no-x: Likewise. * tests/chmod/octal: Likewise. * tests/chmod/setgid: Likewise. * tests/chmod/umask-x: Likewise. * tests/chmod/usage: Likewise. * tests/chown/basic: Likewise. * tests/chown/deref: Likewise. * tests/chown/separator: Likewise. * tests/cp/acl: Likewise. * tests/cp/backup-1: Likewise. * tests/cp/backup-dir: Likewise. * tests/cp/backup-is-src: Likewise. * tests/cp/cp-HL: Likewise. * tests/cp/cp-deref: Likewise. * tests/cp/cp-i: Likewise. * tests/cp/cp-mv-backup: Likewise. * tests/cp/cp-parents: Likewise. * tests/cp/deref-slink: Likewise. * tests/cp/dir-rm-dest: Likewise. * tests/cp/dir-slash: Likewise. * tests/cp/dir-vs-file: Likewise. * tests/cp/fail-perm: Likewise. * tests/cp/into-self: Likewise. * tests/cp/link: Likewise. * tests/cp/link-no-deref: Likewise. * tests/cp/link-preserve: Likewise. * tests/cp/no-deref-link1: Likewise. * tests/cp/no-deref-link2: Likewise. * tests/cp/no-deref-link3: Likewise. * tests/cp/perm: Likewise. * tests/cp/preserve-2: Likewise. * tests/cp/r-vs-symlink: Likewise. * tests/cp/same-file: Likewise. * tests/cp/slink-2-slink: Likewise. * tests/cp/sparse: Likewise. * tests/cp/special-bits: Likewise. * tests/cp/src-base-dot: Likewise. * tests/cp/symlink-slash: Likewise. * tests/dd/not-rewound: Likewise. * tests/dd/skip-seek2: Likewise. * tests/dd/unblock-sync: Likewise. * tests/du/2g: Likewise. * tests/du/8gb: Likewise. * tests/du/basic: Likewise. * tests/du/deref: Likewise. * tests/du/deref-args: Likewise. * tests/du/exclude: Likewise. * tests/du/fd-leak: Likewise. * tests/du/hard-link: Likewise. * tests/du/inaccessible-cwd: Likewise. * tests/du/long-from-unreadable: Likewise. * tests/du/long-sloop: Likewise. * tests/du/no-deref: Likewise. * tests/du/no-x: Likewise. * tests/du/restore-wd: Likewise. * tests/du/slash: Likewise. * tests/du/slink: Likewise. * tests/du/trailing-slash: Likewise. * tests/du/two-args: Likewise. * tests/fmt/long-line: Likewise. * tests/install/basic-1: Likewise. * tests/install/create-leading: Likewise. * tests/install/d-slashdot: Likewise. * tests/install/trap: Likewise. * tests/ln/misc: Likewise. * tests/ln/target-1: Likewise. * tests/ls/color-dtype-dir: Likewise. * tests/ls/dangle: Likewise. * tests/ls/dired: Likewise. * tests/ls/file-type: Likewise. * tests/ls/follow-slink: Likewise. * tests/ls/infloop: Likewise. * tests/ls/inode: Likewise. * tests/ls/m-option: Likewise. * tests/ls/no-arg: Likewise. * tests/ls/recursive: Likewise. * tests/ls/rt-1: Likewise. * tests/ls/stat-dtype: Likewise. * tests/ls/stat-failed: Likewise. * tests/ls/stat-vs-dirent: Likewise. * tests/misc/cat-proc: Likewise. * tests/misc/close-stdout: Likewise. * tests/misc/csplit: Likewise. * tests/misc/date-sec: Likewise. * tests/misc/false-status: Likewise. * tests/misc/head-c: Likewise. * tests/misc/head-pos: Likewise. * tests/misc/mknod: Likewise. * tests/misc/nl: Likewise. * tests/misc/nohup: Likewise. * tests/misc/pathchk1: Likewise. * tests/misc/printf: Likewise. * tests/misc/printf-hex: Likewise. * tests/misc/pwd-long: Likewise. * tests/misc/shuf: Likewise. * tests/misc/sort-rand: Likewise. * tests/misc/split-a: Likewise. * tests/misc/split-fail: Likewise. * tests/misc/split-l: Likewise. * tests/misc/stat-fmt: Likewise. * tests/misc/tac-continue: Likewise. * tests/misc/wc-files0: Likewise. * tests/mkdir/concurrent-1: Likewise. * tests/mkdir/p-1: Likewise. * tests/mkdir/p-2: Likewise. * tests/mkdir/p-3: Likewise. * tests/mkdir/p-slashdot: Likewise. * tests/mkdir/p-thru-slink: Likewise. * tests/mkdir/p-v: Likewise. * tests/mkdir/parents: Likewise. * tests/mkdir/perm: Likewise. * tests/mkdir/t-slash: Likewise. * tests/mv/acl: Likewise. * tests/mv/atomic: Likewise. * tests/mv/backup-dir: Likewise. * tests/mv/childproof: Likewise. * tests/mv/diag: Likewise. * tests/mv/dir-file: Likewise. * tests/mv/dir2dir: Likewise. * tests/mv/dup-source: Likewise. * tests/mv/hard-2: Likewise. * tests/mv/hard-3: Likewise. * tests/mv/hard-4: Likewise. * tests/mv/hard-link-1: Likewise. * tests/mv/hard-verbose: Likewise. * tests/mv/i-2: Likewise. * tests/mv/i-3: Likewise. * tests/mv/i-4: Likewise. * tests/mv/i-5: Likewise. * tests/mv/i-link-no: Likewise. * tests/mv/into-self-4: Likewise. * tests/mv/leak-fd: Likewise. * tests/mv/mv-special-1: Likewise. * tests/mv/no-target-dir: Likewise. * tests/mv/part-fail: Likewise. * tests/mv/part-hardlink: Likewise. * tests/mv/part-rename: Likewise. * tests/mv/part-symlink: Likewise. * tests/mv/partition-perm: Likewise. * tests/mv/perm-1: Likewise. * tests/mv/reply-no: Likewise. * tests/mv/trailing-slash: Likewise. * tests/mv/update: Likewise. * tests/od/od-N: Likewise. * tests/od/x8: Likewise. * tests/readlink/can-e: Likewise. * tests/readlink/can-f: Likewise. * tests/readlink/can-m: Likewise. * tests/readlink/rl-1: Likewise. * tests/rm/cycle: Likewise. * tests/rm/dangling-symlink: Likewise. * tests/rm/deep-1: Likewise. * tests/rm/dir-no-w: Likewise. * tests/rm/dir-nonrecur: Likewise. * tests/rm/dot-rel: Likewise. * tests/rm/empty-inacc: Likewise. * tests/rm/f-1: Likewise. * tests/rm/fail-2eperm: Likewise. * tests/rm/hash: Likewise. * tests/rm/i-1: Likewise. * tests/rm/i-no-r: Likewise. * tests/rm/ignorable: Likewise. * tests/rm/inaccessible: Likewise. * tests/rm/interactive-always: Likewise. * tests/rm/interactive-once: Likewise. * tests/rm/ir-1: Likewise. * tests/rm/isatty: Likewise. * tests/rm/no-give-up: Likewise. * tests/rm/r-1: Likewise. * tests/rm/r-2: Likewise. * tests/rm/r-3: Likewise. * tests/rm/r-4: Likewise. * tests/rm/readdir-bug: Likewise. * tests/rm/rm1: Likewise. * tests/rm/rm2: Likewise. * tests/rm/rm3: Likewise. * tests/rm/rm4: Likewise. * tests/rm/rm5: Likewise. * tests/rm/sunos-1: Likewise. * tests/rm/unread2: Likewise. * tests/rm/unread3: Likewise. * tests/rmdir/fail-perm: Likewise. * tests/rmdir/t-slash: Likewise. * tests/shred/exact: Likewise. * tests/shred/remove: Likewise. * tests/sum/sysv: Likewise. * tests/tail-2/append-only: Likewise. * tests/tail-2/assert: Likewise. * tests/tail-2/assert-2: Likewise. * tests/tail-2/big-4gb: Likewise. * tests/tail-2/fflush: Likewise. * tests/tail-2/infloop-1: Likewise. * tests/tail-2/proc-ksyms: Likewise. * tests/tail-2/start-middle: Likewise. * tests/tail-2/tail-n0f: Likewise. * tests/tee/basic: Likewise. * tests/tee/dash: Likewise. * tests/touch/fail-diag: Likewise. * tests/touch/no-create-missing: Likewise. * tests/touch/not-owner: Likewise. * tests/touch/obsolescent: Likewise. * tests/touch/read-only: Likewise. * tests/touch/relative: Likewise.
This commit is contained in:
218
ChangeLog
218
ChangeLog
@@ -1,3 +1,221 @@
|
||||
2006-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* tests/sample-test: Quote variables containing absolute build
|
||||
tree paths. In the cleanup trap, make sure `cd' succeeds before
|
||||
`chmod'ing and `rm'ing the temporary files.
|
||||
* tests/chgrp/basic: Likewise.
|
||||
* tests/chgrp/deref: Likewise.
|
||||
* tests/chgrp/no-x: Likewise.
|
||||
* tests/chgrp/posix-H: Likewise.
|
||||
* tests/chgrp/recurse: Likewise.
|
||||
* tests/chmod/c-option: Likewise.
|
||||
* tests/chmod/equal-x: Likewise.
|
||||
* tests/chmod/equals: Likewise.
|
||||
* tests/chmod/inaccessible: Likewise.
|
||||
* tests/chmod/no-x: Likewise.
|
||||
* tests/chmod/octal: Likewise.
|
||||
* tests/chmod/setgid: Likewise.
|
||||
* tests/chmod/umask-x: Likewise.
|
||||
* tests/chmod/usage: Likewise.
|
||||
* tests/chown/basic: Likewise.
|
||||
* tests/chown/deref: Likewise.
|
||||
* tests/chown/separator: Likewise.
|
||||
* tests/cp/acl: Likewise.
|
||||
* tests/cp/backup-1: Likewise.
|
||||
* tests/cp/backup-dir: Likewise.
|
||||
* tests/cp/backup-is-src: Likewise.
|
||||
* tests/cp/cp-HL: Likewise.
|
||||
* tests/cp/cp-deref: Likewise.
|
||||
* tests/cp/cp-i: Likewise.
|
||||
* tests/cp/cp-mv-backup: Likewise.
|
||||
* tests/cp/cp-parents: Likewise.
|
||||
* tests/cp/deref-slink: Likewise.
|
||||
* tests/cp/dir-rm-dest: Likewise.
|
||||
* tests/cp/dir-slash: Likewise.
|
||||
* tests/cp/dir-vs-file: Likewise.
|
||||
* tests/cp/fail-perm: Likewise.
|
||||
* tests/cp/into-self: Likewise.
|
||||
* tests/cp/link: Likewise.
|
||||
* tests/cp/link-no-deref: Likewise.
|
||||
* tests/cp/link-preserve: Likewise.
|
||||
* tests/cp/no-deref-link1: Likewise.
|
||||
* tests/cp/no-deref-link2: Likewise.
|
||||
* tests/cp/no-deref-link3: Likewise.
|
||||
* tests/cp/perm: Likewise.
|
||||
* tests/cp/preserve-2: Likewise.
|
||||
* tests/cp/r-vs-symlink: Likewise.
|
||||
* tests/cp/same-file: Likewise.
|
||||
* tests/cp/slink-2-slink: Likewise.
|
||||
* tests/cp/sparse: Likewise.
|
||||
* tests/cp/special-bits: Likewise.
|
||||
* tests/cp/src-base-dot: Likewise.
|
||||
* tests/cp/symlink-slash: Likewise.
|
||||
* tests/dd/not-rewound: Likewise.
|
||||
* tests/dd/skip-seek2: Likewise.
|
||||
* tests/dd/unblock-sync: Likewise.
|
||||
* tests/du/2g: Likewise.
|
||||
* tests/du/8gb: Likewise.
|
||||
* tests/du/basic: Likewise.
|
||||
* tests/du/deref: Likewise.
|
||||
* tests/du/deref-args: Likewise.
|
||||
* tests/du/exclude: Likewise.
|
||||
* tests/du/fd-leak: Likewise.
|
||||
* tests/du/hard-link: Likewise.
|
||||
* tests/du/inaccessible-cwd: Likewise.
|
||||
* tests/du/long-from-unreadable: Likewise.
|
||||
* tests/du/long-sloop: Likewise.
|
||||
* tests/du/no-deref: Likewise.
|
||||
* tests/du/no-x: Likewise.
|
||||
* tests/du/restore-wd: Likewise.
|
||||
* tests/du/slash: Likewise.
|
||||
* tests/du/slink: Likewise.
|
||||
* tests/du/trailing-slash: Likewise.
|
||||
* tests/du/two-args: Likewise.
|
||||
* tests/fmt/long-line: Likewise.
|
||||
* tests/install/basic-1: Likewise.
|
||||
* tests/install/create-leading: Likewise.
|
||||
* tests/install/d-slashdot: Likewise.
|
||||
* tests/install/trap: Likewise.
|
||||
* tests/ln/misc: Likewise.
|
||||
* tests/ln/target-1: Likewise.
|
||||
* tests/ls/color-dtype-dir: Likewise.
|
||||
* tests/ls/dangle: Likewise.
|
||||
* tests/ls/dired: Likewise.
|
||||
* tests/ls/file-type: Likewise.
|
||||
* tests/ls/follow-slink: Likewise.
|
||||
* tests/ls/infloop: Likewise.
|
||||
* tests/ls/inode: Likewise.
|
||||
* tests/ls/m-option: Likewise.
|
||||
* tests/ls/no-arg: Likewise.
|
||||
* tests/ls/recursive: Likewise.
|
||||
* tests/ls/rt-1: Likewise.
|
||||
* tests/ls/stat-dtype: Likewise.
|
||||
* tests/ls/stat-failed: Likewise.
|
||||
* tests/ls/stat-vs-dirent: Likewise.
|
||||
* tests/misc/cat-proc: Likewise.
|
||||
* tests/misc/close-stdout: Likewise.
|
||||
* tests/misc/csplit: Likewise.
|
||||
* tests/misc/date-sec: Likewise.
|
||||
* tests/misc/false-status: Likewise.
|
||||
* tests/misc/head-c: Likewise.
|
||||
* tests/misc/head-pos: Likewise.
|
||||
* tests/misc/mknod: Likewise.
|
||||
* tests/misc/nl: Likewise.
|
||||
* tests/misc/nohup: Likewise.
|
||||
* tests/misc/pathchk1: Likewise.
|
||||
* tests/misc/printf: Likewise.
|
||||
* tests/misc/printf-hex: Likewise.
|
||||
* tests/misc/pwd-long: Likewise.
|
||||
* tests/misc/shuf: Likewise.
|
||||
* tests/misc/sort-rand: Likewise.
|
||||
* tests/misc/split-a: Likewise.
|
||||
* tests/misc/split-fail: Likewise.
|
||||
* tests/misc/split-l: Likewise.
|
||||
* tests/misc/stat-fmt: Likewise.
|
||||
* tests/misc/tac-continue: Likewise.
|
||||
* tests/misc/wc-files0: Likewise.
|
||||
* tests/mkdir/concurrent-1: Likewise.
|
||||
* tests/mkdir/p-1: Likewise.
|
||||
* tests/mkdir/p-2: Likewise.
|
||||
* tests/mkdir/p-3: Likewise.
|
||||
* tests/mkdir/p-slashdot: Likewise.
|
||||
* tests/mkdir/p-thru-slink: Likewise.
|
||||
* tests/mkdir/p-v: Likewise.
|
||||
* tests/mkdir/parents: Likewise.
|
||||
* tests/mkdir/perm: Likewise.
|
||||
* tests/mkdir/t-slash: Likewise.
|
||||
* tests/mv/acl: Likewise.
|
||||
* tests/mv/atomic: Likewise.
|
||||
* tests/mv/backup-dir: Likewise.
|
||||
* tests/mv/childproof: Likewise.
|
||||
* tests/mv/diag: Likewise.
|
||||
* tests/mv/dir-file: Likewise.
|
||||
* tests/mv/dir2dir: Likewise.
|
||||
* tests/mv/dup-source: Likewise.
|
||||
* tests/mv/hard-2: Likewise.
|
||||
* tests/mv/hard-3: Likewise.
|
||||
* tests/mv/hard-4: Likewise.
|
||||
* tests/mv/hard-link-1: Likewise.
|
||||
* tests/mv/hard-verbose: Likewise.
|
||||
* tests/mv/i-2: Likewise.
|
||||
* tests/mv/i-3: Likewise.
|
||||
* tests/mv/i-4: Likewise.
|
||||
* tests/mv/i-5: Likewise.
|
||||
* tests/mv/i-link-no: Likewise.
|
||||
* tests/mv/into-self-4: Likewise.
|
||||
* tests/mv/leak-fd: Likewise.
|
||||
* tests/mv/mv-special-1: Likewise.
|
||||
* tests/mv/no-target-dir: Likewise.
|
||||
* tests/mv/part-fail: Likewise.
|
||||
* tests/mv/part-hardlink: Likewise.
|
||||
* tests/mv/part-rename: Likewise.
|
||||
* tests/mv/part-symlink: Likewise.
|
||||
* tests/mv/partition-perm: Likewise.
|
||||
* tests/mv/perm-1: Likewise.
|
||||
* tests/mv/reply-no: Likewise.
|
||||
* tests/mv/trailing-slash: Likewise.
|
||||
* tests/mv/update: Likewise.
|
||||
* tests/od/od-N: Likewise.
|
||||
* tests/od/x8: Likewise.
|
||||
* tests/readlink/can-e: Likewise.
|
||||
* tests/readlink/can-f: Likewise.
|
||||
* tests/readlink/can-m: Likewise.
|
||||
* tests/readlink/rl-1: Likewise.
|
||||
* tests/rm/cycle: Likewise.
|
||||
* tests/rm/dangling-symlink: Likewise.
|
||||
* tests/rm/deep-1: Likewise.
|
||||
* tests/rm/dir-no-w: Likewise.
|
||||
* tests/rm/dir-nonrecur: Likewise.
|
||||
* tests/rm/dot-rel: Likewise.
|
||||
* tests/rm/empty-inacc: Likewise.
|
||||
* tests/rm/f-1: Likewise.
|
||||
* tests/rm/fail-2eperm: Likewise.
|
||||
* tests/rm/hash: Likewise.
|
||||
* tests/rm/i-1: Likewise.
|
||||
* tests/rm/i-no-r: Likewise.
|
||||
* tests/rm/ignorable: Likewise.
|
||||
* tests/rm/inaccessible: Likewise.
|
||||
* tests/rm/interactive-always: Likewise.
|
||||
* tests/rm/interactive-once: Likewise.
|
||||
* tests/rm/ir-1: Likewise.
|
||||
* tests/rm/isatty: Likewise.
|
||||
* tests/rm/no-give-up: Likewise.
|
||||
* tests/rm/r-1: Likewise.
|
||||
* tests/rm/r-2: Likewise.
|
||||
* tests/rm/r-3: Likewise.
|
||||
* tests/rm/r-4: Likewise.
|
||||
* tests/rm/readdir-bug: Likewise.
|
||||
* tests/rm/rm1: Likewise.
|
||||
* tests/rm/rm2: Likewise.
|
||||
* tests/rm/rm3: Likewise.
|
||||
* tests/rm/rm4: Likewise.
|
||||
* tests/rm/rm5: Likewise.
|
||||
* tests/rm/sunos-1: Likewise.
|
||||
* tests/rm/unread2: Likewise.
|
||||
* tests/rm/unread3: Likewise.
|
||||
* tests/rmdir/fail-perm: Likewise.
|
||||
* tests/rmdir/t-slash: Likewise.
|
||||
* tests/shred/exact: Likewise.
|
||||
* tests/shred/remove: Likewise.
|
||||
* tests/sum/sysv: Likewise.
|
||||
* tests/tail-2/append-only: Likewise.
|
||||
* tests/tail-2/assert: Likewise.
|
||||
* tests/tail-2/assert-2: Likewise.
|
||||
* tests/tail-2/big-4gb: Likewise.
|
||||
* tests/tail-2/fflush: Likewise.
|
||||
* tests/tail-2/infloop-1: Likewise.
|
||||
* tests/tail-2/proc-ksyms: Likewise.
|
||||
* tests/tail-2/start-middle: Likewise.
|
||||
* tests/tail-2/tail-n0f: Likewise.
|
||||
* tests/tee/basic: Likewise.
|
||||
* tests/tee/dash: Likewise.
|
||||
* tests/touch/fail-diag: Likewise.
|
||||
* tests/touch/no-create-missing: Likewise.
|
||||
* tests/touch/not-owner: Likewise.
|
||||
* tests/touch/obsolescent: Likewise.
|
||||
* tests/touch/read-only: Likewise.
|
||||
* tests/touch/relative: Likewise.
|
||||
|
||||
2006-10-21 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* NEWS: (cp --backup fix): Fix a typo.
|
||||
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=basic.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# see if chgrp can change the group of a symlink
|
||||
|
||||
# Copyright (C) 2000, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=slink.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -34,7 +34,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -30,7 +30,7 @@ g2=$2
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# ad-hoc tests of chgrp with -R and -H or -L and symlinks
|
||||
|
||||
# Copyright (C) 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=recurse.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Verify that chmod's --changes (-c) option works.
|
||||
|
||||
# Copyright (C) 2000, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=c-option.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -36,7 +36,7 @@ framework_failure=0
|
||||
cd $srcdir || framework_failure=1
|
||||
abs_srcdir=`pwd`
|
||||
|
||||
cd $pwd || framework_failure=1
|
||||
cd "$pwd" || framework_failure=1
|
||||
mkdir $tmp || framework_failure=1
|
||||
cd $tmp || framework_failure=1
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Test "chmod =x" and the like.
|
||||
|
||||
# Copyright (C) 1999, 2000, 2002, 2004, 2005 Free Software Foundation,
|
||||
# Copyright (C) 1999, 2000, 2002, 2004, 2005, 2006 Free Software Foundation,
|
||||
# Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Before fileutils-4.1.2, some of them didn't.
|
||||
# Also, before coreutils-5.3.1, =[ugo] sometimes didn't work.
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation,
|
||||
# Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation,
|
||||
# Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=equals.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -29,7 +29,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# ensure that chmod diagnoses a certain type of invalid mode string
|
||||
|
||||
# Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=setgid.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Test that chmod -x file reports an error if the result is executable.
|
||||
|
||||
# Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=minus.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Verify that chmod works correctly with odd option combinations.
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# make sure chown --from=... works
|
||||
|
||||
# Copyright (C) 2001, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -29,7 +29,7 @@ PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=basic.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Make sure "chown USER:GROUP FILE" works, and similar tests with separators.
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; (exit $status); exit $status' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -39,7 +39,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Test cp backup.
|
||||
|
||||
# Copyright (C) 1997, 1999, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Test cp backup to source file.
|
||||
|
||||
# Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation,
|
||||
# Copyright (C) 1998, 1999, 2000, 2002, 2004, 2006 Free Software Foundation,
|
||||
# Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# test cp's -H and -L options
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap 'exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Test basic --backup functionality for both cp and mv.
|
||||
|
||||
# Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999, 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -36,7 +36,7 @@ umask 022
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# cp -R --parents dir-specified-with-trailing-slash/ other-dir
|
||||
# would get a failed assertion.
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -28,7 +28,7 @@ umask 022
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -36,7 +36,7 @@ framework_failure=0
|
||||
# Record absolute path of srcdir and cd back to current dir.
|
||||
cd $srcdir || framework_failure=1
|
||||
abs_srcdir=`pwd`
|
||||
cd $pwd || framework_failure=1
|
||||
cd "$pwd" || framework_failure=1
|
||||
|
||||
. $srcdir/../envvar-check
|
||||
. $srcdir/../umask-check
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Demonstrate bug when using -d with an existing destination file
|
||||
# that is a symlink.
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# verify that cp's --remove-destination option works with -R
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Make sure that cp -R DIR1 DIR2 does the right thing
|
||||
# when DIR1 is written with a trailing slash.
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 || exit $?; exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 || exit $?; exit $status' 0
|
||||
trap 'exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# A directory may not replace an existing file.
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -28,7 +28,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Confirm that copying a directory into itself gets a proper diagnostic.
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -33,7 +33,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Make sure cp --link -f works when the target exists.
|
||||
# This failed for 4.0z (due to a bug introduced in that test release).
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# ensure that `cp -d' preserves hard-links between command line arguments
|
||||
# ensure that --preserve=links works with -RH and -RL
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# FIXME: This test requires ln -s.
|
||||
# cp from 3.16 fails this test
|
||||
|
||||
# Copyright (C) 1997, 1999, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# FIXME: This test requires ln -s.
|
||||
# cp from 3.16 fails this test
|
||||
|
||||
# Copyright (C) 1997, 1999, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# FIXME: This test requires ln -s.
|
||||
# cp from 3.16 fails this test
|
||||
|
||||
# Copyright (C) 1997, 1999, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Make sure the permission-preserving code in copy.c (mv, cp, install) works.
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# ensure that cp's --preserve=X,Y option is parsed properly
|
||||
|
||||
# Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# cp -r should not create symlinks. Fixed in fileutils-4.1.5.
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -31,7 +31,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -36,7 +36,7 @@ VERSION_CONTROL=numbered; export VERSION_CONTROL
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $t0 && exit $status' 0
|
||||
trap 'exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# `test cp --update A B' where A and B are both symlinks that point
|
||||
# to the same file
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -31,7 +31,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap 'exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# make sure `cp -p' preserves special bits
|
||||
# This works only when run as root.
|
||||
|
||||
# Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -31,7 +31,7 @@ PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Make sure that cp -dR dereferences a symlink arg if its name is
|
||||
# written with a trailing slash.
|
||||
|
||||
# Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Make sure dd does the right thing when the input file descriptor
|
||||
# is not rewound.
|
||||
|
||||
# Copyright (C) 2000, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=dd-rw.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# show how to skip an amount that is smaller than the nominal block size.
|
||||
# There's a more realistic example in the documentation.
|
||||
|
||||
# Copyright (C) 2000, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=skip-seek.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Before coreutils-5.93, on systems with a signed, 32-bit stat.st_blocks
|
||||
# one of du's computations would overflow.
|
||||
|
||||
# Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -32,7 +32,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# prior to coreutils-4.5.3, du -D didn't work in some cases
|
||||
# Based on an example from Andreas Schwab and/or Michal Svec.
|
||||
|
||||
# Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Ensure that --dereference-args (-D) gives reasonable names.
|
||||
# This test would fail for coreutils-5.0.91.
|
||||
|
||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# make sure du's --exclude option works
|
||||
|
||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# check for file descriptor leak
|
||||
|
||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Likewise for excluded directories.
|
||||
# Ensure that hard links _are_ listed twice when using --count-links.
|
||||
|
||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Ensure that even when run from an inaccessible directory, du can still
|
||||
# operate on accessible directories elsewhere.
|
||||
|
||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -31,7 +31,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -48,6 +48,6 @@ fi
|
||||
|
||||
fail=0
|
||||
|
||||
du $pwd/$tmp/a > /dev/null || fail=1
|
||||
du "$pwd"/$tmp/a > /dev/null || fail=1
|
||||
|
||||
(exit $fail); exit $fail
|
||||
|
||||
@@ -48,7 +48,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -84,6 +84,6 @@ if test $framework_failure = 1; then
|
||||
fi
|
||||
|
||||
fail=0
|
||||
du -s $pwd/$tmp/$dir > /dev/null || fail=1
|
||||
du -s "$pwd"/$tmp/$dir > /dev/null || fail=1
|
||||
|
||||
(exit $fail); exit $fail
|
||||
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Ensure that by default, du doesn't dereference command-line symlinks.
|
||||
|
||||
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -29,7 +29,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# due to a bug in glibc's ftw.c, in some cases, nftw w/FTW_CHDIR
|
||||
# would not restore the working directory.
|
||||
|
||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# `du /' would omit the `/' on the last line.
|
||||
|
||||
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Ensure that the size of a long-named-symlink is > 0.
|
||||
|
||||
# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Ensure that du works properly for an argument that refers to a
|
||||
# symbolic link, and that is specified with a trailing slash.
|
||||
|
||||
# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Make sure `du d/1 d/2' works.
|
||||
# That command failed with du from fileutils-4.0q.
|
||||
|
||||
# Copyright (C) 2000, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=du2-$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# make sure fmt -s works even on long lines
|
||||
|
||||
# Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -40,7 +40,7 @@ file=file
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -69,7 +69,7 @@ dd2=dd2$EXEEXT
|
||||
|
||||
just_built_dd=$pwd/../../src/$dd
|
||||
|
||||
test -r $just_built_dd || \
|
||||
test -r "$just_built_dd" || \
|
||||
{
|
||||
cat 1>&2 <<EOF
|
||||
$0: WARNING!!!
|
||||
@@ -79,7 +79,7 @@ EOF
|
||||
exit 77
|
||||
}
|
||||
|
||||
cp $just_built_dd . || fail=1
|
||||
cp "$just_built_dd" . || fail=1
|
||||
cp $dd $dd2 || fail=1
|
||||
|
||||
strip $dd2 || \
|
||||
@@ -117,7 +117,7 @@ test -d newdir3 || fail=1
|
||||
# hence cannot do anything meaningful with the following relative-named dirs.
|
||||
abs=$pwd/$tmp
|
||||
mkdir sub || fail=1
|
||||
(cd sub && chmod 0 . && ginstall -d $abs/xx/yy rel/sub1 rel/sub2 2> /dev/null) && fail=1
|
||||
(cd sub && chmod 0 . && ginstall -d "$abs"/xx/yy rel/sub1 rel/sub2 2> /dev/null) && fail=1
|
||||
chmod 755 sub
|
||||
|
||||
# Ensure that the first argument-dir has been created.
|
||||
@@ -132,7 +132,7 @@ test -d xx/rel && fail=1
|
||||
# inaccessible parent. coreutils 5.97 fails this test.
|
||||
mkdir -p sub1/d || fail=1
|
||||
(cd sub1/d && chmod a-rx .. && chmod a-r . &&
|
||||
ginstall -d $abs/xx/zz rel/a rel/b 2> /dev/null) || fail=1
|
||||
ginstall -d "$abs"/xx/zz rel/a rel/b 2> /dev/null) || fail=1
|
||||
chmod 755 sub1 sub1/d || fail=1
|
||||
test -d xx/zz || fail=1
|
||||
test -d sub1/d/rel/a || fail=1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
# Test -D option.
|
||||
|
||||
# Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2000, 2001, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -31,7 +31,7 @@ fi
|
||||
pwd=`pwd`
|
||||
dir=install-D$$
|
||||
|
||||
trap "cd $pwd; rm -rf $dir" 0 1 2 3 15
|
||||
trap 'cd "$pwd" && rm -rf $dir' 0 1 2 3 15
|
||||
|
||||
mkdir $dir
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Ensure that ginstall -d works with arguments specified with a trailing "/.".
|
||||
|
||||
# Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Ensure that `install -s' doesn't infloop when its parent
|
||||
# process traps CHLD signal.
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -43,10 +43,10 @@ fail=0
|
||||
# Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
|
||||
(
|
||||
# ash doesn't support "trap '' CHLD"; it knows only signal numbers.
|
||||
sig=`$pwd/../../src/kill -l CHLD 2>/dev/null` && trap '' $sig
|
||||
sig=`"$pwd"/../../src/kill -l CHLD 2>/dev/null` && trap '' $sig
|
||||
|
||||
# Before 2004-04-21, install would infloop, in the `while (wait...' loop:
|
||||
exec ginstall -s $pwd/../../src/ginstall$EXEEXT .
|
||||
exec ginstall -s "$pwd"/../../src/ginstall$EXEEXT .
|
||||
)
|
||||
|
||||
(exit $fail); exit $fail
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Miscellaneous tests for "ln".
|
||||
|
||||
# Copyright (C) 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1998, 1999, 2000, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=t2-ln.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -106,7 +106,7 @@ touch $f || framework_failure=1
|
||||
mkdir $d || framework_failure=1
|
||||
ln -s $d $ld
|
||||
af=`pwd`/$f
|
||||
ln --no-dereference -fs $af $ld || fail=1
|
||||
ln --no-dereference -fs "$af" $ld || fail=1
|
||||
test -f $ld || fail=1
|
||||
rm -rf $d $f $ld
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Test "ln --target-dir" with one file.
|
||||
|
||||
# Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Make sure ls properly handles dangling symlinks vs. ls's -L, -H, options.
|
||||
|
||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# make sure --dired option works
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=dired.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# contrast ls -F, ls -p, and ls --indicator-style=file-type
|
||||
|
||||
# Copyright (C) 2002, 2005 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=follow-sl.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# show that the following no longer makes ls infloop
|
||||
# mkdir loop; cd loop; ln -s ../loop sub; ls -RL
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=infloop.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# exercise the -m option
|
||||
|
||||
# Copyright (C) 2003 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# make sure ls and `ls -R' do the right thing when invoked with no arguments.
|
||||
|
||||
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2003, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=no-args.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# 4.1.1 and 4.1.2 had a bug whereby some recursive listings
|
||||
# didn't include a blank line between per-directory groups of files.
|
||||
|
||||
# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=recursive.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Make sure name is used as secondary key when sorting on mtime or ctime.
|
||||
|
||||
# Copyright (C) 1998, 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1998, 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -29,7 +29,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=t-ls.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -32,7 +32,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -30,7 +30,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
@@ -56,21 +56,21 @@ mv d e >&- || fail=1
|
||||
rmdir e >&- || fail=1
|
||||
touch e >&- || fail=1
|
||||
sleep 0 >&- || fail=1
|
||||
$pwd/../../src/true >&- || fail=1
|
||||
$pwd/../../src/printf '' >&- || fail=1
|
||||
"$pwd"/../../src/true >&- || fail=1
|
||||
"$pwd"/../../src/printf '' >&- || fail=1
|
||||
|
||||
# If >&- works, ensure these fail, because stdout is closed and they
|
||||
# *do* generate output. >&- apparently does not work in HP-UX 11.23.
|
||||
# This test is ineffective unless /dev/stdout also works.
|
||||
if $pwd/../../src/test -w /dev/stdout >/dev/null &&
|
||||
$pwd/../../src/test ! -w /dev/stdout >&-; then
|
||||
$pwd/../../src/printf 'foo' >&- 2>/dev/null && fail=1
|
||||
if "$pwd"/../../src/test -w /dev/stdout >/dev/null &&
|
||||
"$pwd"/../../src/test ! -w /dev/stdout >&-; then
|
||||
"$pwd"/../../src/printf 'foo' >&- 2>/dev/null && fail=1
|
||||
cp --verbose a b >&- 2>/dev/null && fail=1
|
||||
fi
|
||||
|
||||
# Likewise for /dev/full, if /dev/full works.
|
||||
if test -w /dev/full && test -c /dev/full; then
|
||||
$pwd/../../src/printf 'foo' >/dev/full 2>/dev/null && fail=1
|
||||
"$pwd"/../../src/printf 'foo' >/dev/full 2>/dev/null && fail=1
|
||||
cp --verbose a b >/dev/full 2>/dev/null && fail=1
|
||||
fi
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=csplit.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# `date --date="21:04 +0100" +%S' always prints `00'.
|
||||
# Before coreutils-5.2.1, it would print the seconds from the current time.
|
||||
|
||||
# Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# exercise the fix of 2001-08-18, based on test case from Ian Bruce
|
||||
|
||||
# Copyright (C) 2001, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=head-c.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# When reading a specified number of lines, ensure that the output
|
||||
# file pointer is positioned just after those lines.
|
||||
|
||||
# Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -26,7 +26,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
tmp=head-pos.$$
|
||||
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# exercise nl functionality
|
||||
|
||||
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
@@ -28,7 +28,7 @@ fi
|
||||
|
||||
pwd=`pwd`
|
||||
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
|
||||
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
|
||||
trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
|
||||
trap '(exit $?); exit $?' 1 2 13 15
|
||||
|
||||
framework_failure=0
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user