Paul Eggert
218fa5c61b
Add/fix copyright notices and adjust to latest GNU FDL.
2006-08-17 19:58:17 +00:00
Jim Meyering
572d582d8d
Ensure that $? is 0 for the final `exit 0'.
...
Otherwise, with at least the /bin/sh from HPUX 10.20,
the trap code would end up converting that to exit 1 and thus an
unexpected test failure. Reported by Christian Krackowizer.
2003-08-01 22:33:04 +00:00
Jim Meyering
d7a263ce2a
Don't open-code test for UID != 0.
...
Use priv-check's require-non-root instead.
Update to use newer framework.
2003-07-19 11:47:17 +00:00
Jim Meyering
2aeb21d67a
Add traps to clean up.
...
Correct broken running-as-root test.
2000-05-23 21:14:33 +00:00
Jim Meyering
8c8e4286b5
append in subshell so we don't see this diagnostic:
...
./remove: t-shred.11626/file: Permission denied
2000-05-10 22:33:06 +00:00
Jim Meyering
1068a0005a
Don't use touch in root test. Instead, append to
...
the test file, since now touch operates even on files which deny owner
write access.
2000-05-08 16:53:36 +00:00
Jim Meyering
ff626bd3c0
Make the warning that this shred test may not
...
be run as root more prominent. Suggestion from Volker Borchert.
2000-01-12 14:00:22 +00:00
Jim Meyering
94aebe4774
Use $file, not $tmp/file. Exit 77 if run as root.
1999-12-22 14:30:23 +00:00
Jim Meyering
a9c3d9197f
*** empty log message ***
1999-12-15 10:15:36 +00:00
Jim Meyering
99aa95f945
*** empty log message ***
1999-12-13 22:37:15 +00:00
Jim Meyering
5c2322aacc
*** empty log message ***
1999-12-13 15:03:51 +00:00