platform/upstream/coreutils.git
19 years agoNew file umask-check to test for umask problems during tests.
Paul Eggert [Wed, 22 Jun 2005 18:10:16 +0000 (18:10 +0000)]
New file umask-check to test for umask problems during tests.

19 years agoUse umask-check instead of chmod.
Paul Eggert [Wed, 22 Jun 2005 18:08:35 +0000 (18:08 +0000)]
Use umask-check instead of chmod.

19 years agoUse umask-check.
Paul Eggert [Wed, 22 Jun 2005 18:08:13 +0000 (18:08 +0000)]
Use umask-check.

19 years ago(EXTRA_DIST): Add umask-check.
Paul Eggert [Wed, 22 Jun 2005 18:07:55 +0000 (18:07 +0000)]
(EXTRA_DIST): Add umask-check.

19 years agoInitial revision.
Paul Eggert [Wed, 22 Jun 2005 18:07:36 +0000 (18:07 +0000)]
Initial revision.

19 years ago*** empty log message ***
Jim Meyering [Wed, 22 Jun 2005 15:30:16 +0000 (15:30 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 22 Jun 2005 15:29:51 +0000 (15:29 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Wed, 22 Jun 2005 15:25:29 +0000 (15:25 +0000)]
*** empty log message ***

19 years agoInclude "quotearg.h", not "quote.h".
Jim Meyering [Wed, 22 Jun 2005 15:25:23 +0000 (15:25 +0000)]
Include "quotearg.h", not "quote.h".
(remove_parents, main): Use quotearg_colon, not quote.

19 years agoFrom gnulib:
Jim Meyering [Wed, 22 Jun 2005 11:55:38 +0000 (11:55 +0000)]
From gnulib:

  (HAVE_GNU_CALLOC): New constant.
  (xcalloc): Use it to avoid needless tests.

19 years ago*** empty log message ***
Jim Meyering [Wed, 22 Jun 2005 11:52:24 +0000 (11:52 +0000)]
*** empty log message ***

19 years ago* tests/cp/cp-parents: Use chmod to work around some hosts with
Paul Eggert [Wed, 22 Jun 2005 07:38:06 +0000 (07:38 +0000)]
* tests/cp/cp-parents: Use chmod to work around some hosts with
ACL problems.

19 years ago*** empty log message ***
Jim Meyering [Tue, 21 Jun 2005 12:46:40 +0000 (12:46 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Tue, 21 Jun 2005 08:59:55 +0000 (08:59 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Tue, 21 Jun 2005 08:45:58 +0000 (08:45 +0000)]
*** empty log message ***

19 years agoUse --apparent-size to avoid the vagaries
Jim Meyering [Tue, 21 Jun 2005 08:45:19 +0000 (08:45 +0000)]
Use --apparent-size to avoid the vagaries
of counting blocks.  Kevin Mudrick reported that this test would
fail on an nfs-mounted directory where attribute-caching is
turned on.

19 years ago.
Jim Meyering [Mon, 20 Jun 2005 07:13:36 +0000 (07:13 +0000)]
.

19 years agoAllow the two existing types of uses of PATH:
Jim Meyering [Sun, 19 Jun 2005 13:43:50 +0000 (13:43 +0000)]
Allow the two existing types of uses of PATH:
  @vindex PATH
  @env{PATH}

19 years ago*** empty log message ***
Jim Meyering [Sun, 19 Jun 2005 13:39:54 +0000 (13:39 +0000)]
*** empty log message ***

19 years ago(ln invocation): Change a few `paths' to `file names'.
Jim Meyering [Sun, 19 Jun 2005 13:39:51 +0000 (13:39 +0000)]
(ln invocation): Change a few `paths' to `file names'.

19 years ago*** empty log message ***
Jim Meyering [Sun, 19 Jun 2005 13:37:41 +0000 (13:37 +0000)]
*** empty log message ***

19 years agoAlso catch uses of path, pathname.
Jim Meyering [Sun, 19 Jun 2005 13:37:39 +0000 (13:37 +0000)]
Also catch uses of path, pathname.

19 years ago(tac_mem, tac_stdin_to_mem): Remove #if-0'd functions.
Jim Meyering [Sun, 19 Jun 2005 09:10:28 +0000 (09:10 +0000)]
(tac_mem, tac_stdin_to_mem): Remove #if-0'd functions.

19 years ago*** empty log message ***
Jim Meyering [Sun, 19 Jun 2005 09:08:53 +0000 (09:08 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sun, 19 Jun 2005 08:34:56 +0000 (08:34 +0000)]
*** empty log message ***

19 years ago(usage): Use `file system', not `filesystem'.
Jim Meyering [Sun, 19 Jun 2005 08:34:49 +0000 (08:34 +0000)]
(usage): Use `file system', not `filesystem'.

19 years agouse `file system', not `filesystem'
Jim Meyering [Sun, 19 Jun 2005 08:34:14 +0000 (08:34 +0000)]
use `file system', not `filesystem'

19 years ago*** empty log message ***
Jim Meyering [Sun, 19 Jun 2005 08:30:16 +0000 (08:30 +0000)]
*** empty log message ***

19 years ago(gl_XGETCWD): Add `AC_LIBOBJ([xgetcwd])'.
Jim Meyering [Sun, 19 Jun 2005 08:30:08 +0000 (08:30 +0000)]
(gl_XGETCWD): Add `AC_LIBOBJ([xgetcwd])'.
Register xgetcwd.c and xgetcwd.h via AC_LIBSOURCES.

19 years agorename to gl_FUNC_XFTS
Jim Meyering [Sun, 19 Jun 2005 08:27:47 +0000 (08:27 +0000)]
rename to gl_FUNC_XFTS

19 years agoRequire gl_FUNC_XFTS.
Jim Meyering [Sun, 19 Jun 2005 08:27:28 +0000 (08:27 +0000)]
Require gl_FUNC_XFTS.

19 years ago(gl_XFTS): New file/macro.
Jim Meyering [Sun, 19 Jun 2005 08:25:46 +0000 (08:25 +0000)]
(gl_XFTS): New file/macro.

19 years ago(libcoreutils_a_SOURCES): Remove xgetcwd.c, xgetcwd.h, xfts.c and xfts.h.
Jim Meyering [Sun, 19 Jun 2005 08:25:21 +0000 (08:25 +0000)]
(libcoreutils_a_SOURCES): Remove xgetcwd.c, xgetcwd.h, xfts.c and xfts.h.

19 years ago*** empty log message ***
Jim Meyering [Sat, 18 Jun 2005 06:25:22 +0000 (06:25 +0000)]
*** empty log message ***

19 years ago(unquote): Remove unnecessary `' quotes from a diagnostic.
Jim Meyering [Sat, 18 Jun 2005 06:25:09 +0000 (06:25 +0000)]
(unquote): Remove unnecessary `' quotes from a diagnostic.

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Fri, 17 Jun 2005 18:43:24 +0000 (18:43 +0000)]
Don't embed `this'-style quotes in format strings.

Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years ago*** empty log message ***
Jim Meyering [Fri, 17 Jun 2005 13:16:07 +0000 (13:16 +0000)]
*** empty log message ***

19 years ago(usage): Clarify that shred works on an ext3 file
Jim Meyering [Fri, 17 Jun 2005 13:16:00 +0000 (13:16 +0000)]
(usage): Clarify that shred works on an ext3 file
system as long as it's not in data=journal mode.
Tiny change by Mark Melahn.

19 years ago*** empty log message ***
Jim Meyering [Fri, 17 Jun 2005 13:12:21 +0000 (13:12 +0000)]
*** empty log message ***

19 years ago(shred invocation): Clarify that shred
Jim Meyering [Fri, 17 Jun 2005 13:12:17 +0000 (13:12 +0000)]
(shred invocation): Clarify that shred
works on ext3 as long as it's not in data=journal mode.
Patch from Mark Melahn.

19 years ago*** empty log message ***
Jim Meyering [Fri, 17 Jun 2005 13:11:47 +0000 (13:11 +0000)]
*** empty log message ***

19 years ago* src/hostid.c (main): Don't print fewer than 8 digits, or spurious leading "f".
Paul Eggert [Thu, 16 Jun 2005 23:46:27 +0000 (23:46 +0000)]
* src/hostid.c (main): Don't print fewer than 8 digits, or spurious leading "f".

19 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jun 2005 21:49:22 +0000 (21:49 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jun 2005 21:47:19 +0000 (21:47 +0000)]
*** empty log message ***

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:44:25 +0000 (21:44 +0000)]
Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agowhoops: Adding quote(...) isn't enough :)
Jim Meyering [Thu, 16 Jun 2005 21:41:57 +0000 (21:41 +0000)]
whoops: Adding quote(...) isn't enough :)
remove quotes from the string, too.

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:40:43 +0000 (21:40 +0000)]
Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:39:10 +0000 (21:39 +0000)]
Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:38:27 +0000 (21:38 +0000)]
Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:37:37 +0000 (21:37 +0000)]
Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:36:48 +0000 (21:36 +0000)]
Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:35:40 +0000 (21:35 +0000)]
Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoDon't embed `this'-style quotes in format strings.
Jim Meyering [Thu, 16 Jun 2005 21:33:43 +0000 (21:33 +0000)]
Don't embed `this'-style quotes in format strings.

Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoRather than this: error (..., "...`%s'...", arg);
Jim Meyering [Thu, 16 Jun 2005 21:28:41 +0000 (21:28 +0000)]
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years agoRather than this: error (..., "...`%s'...", arg);
Jim Meyering [Thu, 16 Jun 2005 21:28:12 +0000 (21:28 +0000)]
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));

19 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jun 2005 14:52:33 +0000 (14:52 +0000)]
*** empty log message ***

19 years ago(rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
Jim Meyering [Thu, 16 Jun 2005 14:52:29 +0000 (14:52 +0000)]
(rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
when either N or S is zero.

19 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jun 2005 09:16:25 +0000 (09:16 +0000)]
*** empty log message ***

19 years ago(Backup options): Undocument --version-control=S (-V).
Jim Meyering [Thu, 16 Jun 2005 09:16:16 +0000 (09:16 +0000)]
(Backup options): Undocument --version-control=S (-V).

19 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jun 2005 09:15:45 +0000 (09:15 +0000)]
*** empty log message ***

19 years agoFinally remove support for --version-control=S (-V).
Jim Meyering [Thu, 16 Jun 2005 09:15:23 +0000 (09:15 +0000)]
Finally remove support for --version-control=S (-V).
It was deprecated nearly 6 years ago and has been warning
users to switch to --backup=S since fileutils-4.0j.

19 years ago.
Jim Meyering [Wed, 15 Jun 2005 09:53:34 +0000 (09:53 +0000)]
.

19 years agoReflect s/_die/_fail/ renaming.
Jim Meyering [Wed, 15 Jun 2005 09:38:12 +0000 (09:38 +0000)]
Reflect s/_die/_fail/ renaming.

19 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jun 2005 09:31:20 +0000 (09:31 +0000)]
*** empty log message ***

19 years agoEnsure that rel-named dirs are not created when chdir($PWD) fails.
Jim Meyering [Wed, 15 Jun 2005 09:31:16 +0000 (09:31 +0000)]
Ensure that rel-named dirs are not created when chdir($PWD) fails.

19 years agoEnsure that each `-d'-specified directory is created.
Jim Meyering [Wed, 15 Jun 2005 09:04:21 +0000 (09:04 +0000)]
Ensure that each `-d'-specified directory is created.

19 years ago(main): Fix my typo: s/argv[optind]/file[i]/.
Jim Meyering [Wed, 15 Jun 2005 08:54:21 +0000 (08:54 +0000)]
(main): Fix my typo: s/argv[optind]/file[i]/.

19 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jun 2005 08:32:14 +0000 (08:32 +0000)]
*** empty log message ***

19 years agoAdd a test for just-fixed bug in mkdir-p.c.
Jim Meyering [Wed, 15 Jun 2005 08:32:11 +0000 (08:32 +0000)]
Add a test for just-fixed bug in mkdir-p.c.

19 years ago(make_dir_parents): Don't let a failed chdir($PWD)
Jim Meyering [Wed, 15 Jun 2005 08:31:44 +0000 (08:31 +0000)]
(make_dir_parents): Don't let a failed chdir($PWD)
stop us from restricting permissions of just-created absolute-named
directories.

19 years agoFix typo in previous checkin.
Paul Eggert [Wed, 15 Jun 2005 00:06:34 +0000 (00:06 +0000)]
Fix typo in previous checkin.

19 years agoinstall -D had a problem similar to mkdir -p.
Paul Eggert [Wed, 15 Jun 2005 00:05:20 +0000 (00:05 +0000)]
install -D had a problem similar to mkdir -p.

19 years agoImprove diagnostics for restore_cwd failure.
Paul Eggert [Tue, 14 Jun 2005 23:58:00 +0000 (23:58 +0000)]
Improve diagnostics for restore_cwd failure.

19 years ago(make_dir): Remove. All uses replaced by mkdir.
Paul Eggert [Tue, 14 Jun 2005 23:56:49 +0000 (23:56 +0000)]
(make_dir): Remove.  All uses replaced by mkdir.
(make_dir_parents): Last arg is now int * (for errno), not bool *.
Rewrite "mkdir -p" algorithm to avoid the need for "stat"
each time through the loop.  Do not diagnose restore_cwd failure;
that is the caller's job (and perhaps the caller does not care).

19 years ago(make_dir): Remove. All uses replaced by mkdir.
Paul Eggert [Tue, 14 Jun 2005 23:56:17 +0000 (23:56 +0000)]
(make_dir): Remove.  All uses replaced by mkdir.
(make_dir_parents): Last arg is now int * (for errno), not bool *.

19 years ago(create_parents): Remove static var (now local to 'main').
Paul Eggert [Tue, 14 Jun 2005 23:55:47 +0000 (23:55 +0000)]
(create_parents): Remove static var (now local to 'main').
(main): Standardize on a diagnostic for restore_cwd failure,
and report errno.
Don't bother to check cwd_errno unless create_parents.
Use mkdir rather than make_dir; it's simpler.

19 years ago(main): Standardize on a diagnostic for
Paul Eggert [Tue, 14 Jun 2005 23:55:24 +0000 (23:55 +0000)]
(main): Standardize on a diagnostic for
restore_cwd failure, and report errno.
(install_file_in_file_parents): Fail if restore_cwd fails and
one of the files is relative.  This fixes a bug (albeit unlikely).

19 years agomkdir-p cleanup.
Paul Eggert [Tue, 14 Jun 2005 18:36:44 +0000 (18:36 +0000)]
mkdir-p cleanup.

19 years agoAdjust to new make_dir_parents convention.
Paul Eggert [Tue, 14 Jun 2005 18:36:25 +0000 (18:36 +0000)]
Adjust to new make_dir_parents convention.

19 years ago(main): Adjust to new make_dir_parents convention.
Paul Eggert [Tue, 14 Jun 2005 18:35:58 +0000 (18:35 +0000)]
(main): Adjust to new make_dir_parents convention.

19 years ago(CLEANUP_CWD, CLEANUP): Remove.
Paul Eggert [Tue, 14 Jun 2005 18:35:38 +0000 (18:35 +0000)]
(CLEANUP_CWD, CLEANUP): Remove.
(make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
If the file already exists but is not a directory, don't bother
to try to make its parents.
Close potential file descriptor leak if we can't chdir("/") (!).
Don't always return true if chdir($PWD) fails; return true only
if the requested action was done successfully (except for the
chdir($PWD)).
Don't log final directory unless we actually made it.
Refactor to avoid duplicate code to fix up permissions.
Don't attempt to fix up parent permissions if chdir($PWD) fails.

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 09:46:39 +0000 (09:46 +0000)]
*** empty log message ***

19 years agoReflect s/_die/_fail/ renaming.
Jim Meyering [Tue, 14 Jun 2005 09:46:24 +0000 (09:46 +0000)]
Reflect s/_die/_fail/ renaming.

19 years ago(openat_save_fail): Rename from openat_save_die.
Jim Meyering [Tue, 14 Jun 2005 09:44:54 +0000 (09:44 +0000)]
(openat_save_fail): Rename from openat_save_die.
(openat_restore_fail): Rename from openat_restore_die.

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 09:00:05 +0000 (09:00 +0000)]
*** empty log message ***

19 years agoEnsure mkdir succeeds if the following argument is an absolute directory name.
Jim Meyering [Tue, 14 Jun 2005 09:00:00 +0000 (09:00 +0000)]
Ensure mkdir succeeds if the following argument is an absolute directory name.

19 years agoclarify comment
Jim Meyering [Tue, 14 Jun 2005 08:55:37 +0000 (08:55 +0000)]
clarify comment

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 08:53:11 +0000 (08:53 +0000)]
*** empty log message ***

19 years ago(CLEANUP_CWD): Return *true*, not false when failing
Jim Meyering [Tue, 14 Jun 2005 08:48:13 +0000 (08:48 +0000)]
(CLEANUP_CWD): Return *true*, not false when failing
to restore initial working directory.

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 08:26:43 +0000 (08:26 +0000)]
*** empty log message ***

19 years agoChange openat.c to openat-die.c.
Jim Meyering [Tue, 14 Jun 2005 08:26:37 +0000 (08:26 +0000)]
Change openat.c to openat-die.c.

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 08:25:56 +0000 (08:25 +0000)]
*** empty log message ***

19 years ago(my-distcheck): Add -Wall to the list of options that
Jim Meyering [Tue, 14 Jun 2005 08:25:53 +0000 (08:25 +0000)]
(my-distcheck): Add -Wall to the list of options that
are used with -Werror.  This target is not intended for general use.

19 years ago.
Jim Meyering [Tue, 14 Jun 2005 08:19:18 +0000 (08:19 +0000)]
.

19 years agotweak diagnostic wording: Use `... return to working directory', rather
Jim Meyering [Tue, 14 Jun 2005 08:18:43 +0000 (08:18 +0000)]
tweak diagnostic wording: Use `... return to working directory', rather
than `... restore working directory'.

19 years agowhoops.
Jim Meyering [Tue, 14 Jun 2005 08:16:18 +0000 (08:16 +0000)]
whoops.
redirect stderr to dev/null

19 years ago.
Jim Meyering [Tue, 14 Jun 2005 08:00:46 +0000 (08:00 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 08:00:16 +0000 (08:00 +0000)]
*** empty log message ***

19 years ago(TESTS): Add p-3.
Jim Meyering [Tue, 14 Jun 2005 07:59:59 +0000 (07:59 +0000)]
(TESTS): Add p-3.

19 years agoremove obsolete FIXME
Jim Meyering [Tue, 14 Jun 2005 07:55:32 +0000 (07:55 +0000)]
remove obsolete FIXME