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));
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));
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));
Jim Meyering [Thu, 16 Jun 2005 14:52:33 +0000 (14:52 +0000)]
*** empty log message ***
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.
Jim Meyering [Thu, 16 Jun 2005 09:16:25 +0000 (09:16 +0000)]
*** empty log message ***
Jim Meyering [Thu, 16 Jun 2005 09:16:16 +0000 (09:16 +0000)]
(Backup options): Undocument --version-control=S (-V).
Jim Meyering [Thu, 16 Jun 2005 09:15:45 +0000 (09:15 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 15 Jun 2005 09:53:34 +0000 (09:53 +0000)]
.
Jim Meyering [Wed, 15 Jun 2005 09:38:12 +0000 (09:38 +0000)]
Reflect s/_die/_fail/ renaming.
Jim Meyering [Wed, 15 Jun 2005 09:31:20 +0000 (09:31 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 15 Jun 2005 09:04:21 +0000 (09:04 +0000)]
Ensure that each `-d'-specified directory is created.
Jim Meyering [Wed, 15 Jun 2005 08:54:21 +0000 (08:54 +0000)]
(main): Fix my typo: s/argv[optind]/file[i]/.
Jim Meyering [Wed, 15 Jun 2005 08:32:14 +0000 (08:32 +0000)]
*** empty log message ***
Jim Meyering [Wed, 15 Jun 2005 08:32:11 +0000 (08:32 +0000)]
Add a test for just-fixed bug in mkdir-p.c.
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.
Paul Eggert [Wed, 15 Jun 2005 00:06:34 +0000 (00:06 +0000)]
Fix typo in previous checkin.
Paul Eggert [Wed, 15 Jun 2005 00:05:20 +0000 (00:05 +0000)]
install -D had a problem similar to mkdir -p.
Paul Eggert [Tue, 14 Jun 2005 23:58:00 +0000 (23:58 +0000)]
Improve diagnostics for restore_cwd failure.
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).
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 *.
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.
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).
Paul Eggert [Tue, 14 Jun 2005 18:36:44 +0000 (18:36 +0000)]
mkdir-p cleanup.
Paul Eggert [Tue, 14 Jun 2005 18:36:25 +0000 (18:36 +0000)]
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.
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.
Jim Meyering [Tue, 14 Jun 2005 09:46:39 +0000 (09:46 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 09:46:24 +0000 (09:46 +0000)]
Reflect s/_die/_fail/ renaming.
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.
Jim Meyering [Tue, 14 Jun 2005 09:00:05 +0000 (09:00 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 14 Jun 2005 08:55:37 +0000 (08:55 +0000)]
clarify comment
Jim Meyering [Tue, 14 Jun 2005 08:53:11 +0000 (08:53 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 14 Jun 2005 08:26:43 +0000 (08:26 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 08:26:37 +0000 (08:26 +0000)]
Change openat.c to openat-die.c.
Jim Meyering [Tue, 14 Jun 2005 08:25:56 +0000 (08:25 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 14 Jun 2005 08:19:18 +0000 (08:19 +0000)]
.
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'.
Jim Meyering [Tue, 14 Jun 2005 08:16:18 +0000 (08:16 +0000)]
whoops.
redirect stderr to dev/null
Jim Meyering [Tue, 14 Jun 2005 08:00:46 +0000 (08:00 +0000)]
.
Jim Meyering [Tue, 14 Jun 2005 08:00:16 +0000 (08:00 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 07:59:59 +0000 (07:59 +0000)]
(TESTS): Add p-3.
Jim Meyering [Tue, 14 Jun 2005 07:55:32 +0000 (07:55 +0000)]
remove obsolete FIXME
Jim Meyering [Tue, 14 Jun 2005 07:47:57 +0000 (07:47 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 07:47:52 +0000 (07:47 +0000)]
(gl_FUNC_OPENAT): Add openat-die.c.
Jim Meyering [Tue, 14 Jun 2005 06:55:32 +0000 (06:55 +0000)]
*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 06:55:24 +0000 (06:55 +0000)]
(openat_save_die, openat_restore_die): New file.
Jim Meyering [Tue, 14 Jun 2005 06:54:57 +0000 (06:54 +0000)]
(openat_save_die, openat_restore_die): Declare and define.
Jim Meyering [Tue, 14 Jun 2005 06:54:39 +0000 (06:54 +0000)]
Provide an alternative to exiting immediately upon save_cwd or
restore_cwd failure. Now, an application can arrange e.g.,
to perform a longjump in that case.
* openat.c: Include dirname.h.
Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
(rpl_openat, fdopendir, fstatat): Call openat_save_die
and openat_restore_die rather than calling error directly.
Don't include "error.h" or "exitfail.h"; they're no longer needed.
* openat-die.c (openat_save_die, openat_restore_die): New file.
* openat.h (openat_save_die, openat_restore_die): Declare and define.
Jim Meyering [Mon, 13 Jun 2005 10:22:29 +0000 (10:22 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jun 2005 10:22:26 +0000 (10:22 +0000)]
(make_dir_parents): Update prototype.
Jim Meyering [Mon, 13 Jun 2005 10:21:32 +0000 (10:21 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jun 2005 10:20:39 +0000 (10:20 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jun 2005 10:19:23 +0000 (10:19 +0000)]
*** empty log message ***
Jim Meyering [Mon, 13 Jun 2005 10:19:18 +0000 (10:19 +0000)]
(main): When make_dir_parents changes the current working
directory, give a diagnostic about each subsequent failure to create
a dot-relative directory.
(install_file_in_file_parents): Update make_dir_parents caller.
Jim Meyering [Mon, 13 Jun 2005 10:17:36 +0000 (10:17 +0000)]
(main): When make_dir_parents changes the current working
directory, give a diagnostic about each subsequent failure to create
a dot-relative directory.
Jim Meyering [Mon, 13 Jun 2005 10:15:19 +0000 (10:15 +0000)]
(make_dir_parents): New parameter: different_working_dir,
to tell caller if/when we change the working directory and are
unable to return to the initial one.
Jim Meyering [Sun, 12 Jun 2005 19:56:42 +0000 (19:56 +0000)]
*** empty log message ***
Jim Meyering [Sun, 12 Jun 2005 19:56:37 +0000 (19:56 +0000)]
(CLEANUP_CWD): Change one more `return 1' to `return false'.
This fixes a bug introduced on 2004-07-30.
Paul Eggert [Fri, 10 Jun 2005 19:32:04 +0000 (19:32 +0000)]
Act on the Austin Group's response yesterday to XCU ERN 63.
Paul Eggert [Fri, 10 Jun 2005 19:31:45 +0000 (19:31 +0000)]
(any_has_acl): New var.
(clear_files): Clear it.
(gobble_file): Set it if a file has an ACL.
(print_long_format): Omit needless space unless some file has an ACL.
Paul Eggert [Fri, 10 Jun 2005 19:31:24 +0000 (19:31 +0000)]
Remove the extra spaces in "ls -l" output.
Paul Eggert [Fri, 10 Jun 2005 19:30:51 +0000 (19:30 +0000)]
ls no longer outputs an extra space between mode and link count.
Jim Meyering [Fri, 10 Jun 2005 16:42:33 +0000 (16:42 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jun 2005 16:42:28 +0000 (16:42 +0000)]
(VERIFY_W_TYPEOF): Add parentheses.
Jim Meyering [Thu, 9 Jun 2005 09:22:27 +0000 (09:22 +0000)]
Change filesystems to `file systems'.
Jim Meyering [Tue, 7 Jun 2005 06:41:18 +0000 (06:41 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jun 2005 06:40:40 +0000 (06:40 +0000)]
(ln invocation): Examples, from Bob Proulx.
Paul Eggert [Fri, 3 Jun 2005 04:49:30 +0000 (04:49 +0000)]
Fix typo in comment.
Paul Eggert [Thu, 2 Jun 2005 19:54:02 +0000 (19:54 +0000)]
Regenerate.
Paul Eggert [Thu, 2 Jun 2005 19:49:27 +0000 (19:49 +0000)]
Sync from gnulib.
Jim Meyering [Thu, 2 Jun 2005 11:38:49 +0000 (11:38 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Jun 2005 11:38:46 +0000 (11:38 +0000)]
Change makepath.c to mkdir-p.c here, too.
Jim Meyering [Thu, 2 Jun 2005 10:04:32 +0000 (10:04 +0000)]
*** empty log message ***
Jim Meyering [Thu, 2 Jun 2005 10:02:29 +0000 (10:02 +0000)]
(usage): Put `Ordering options:' line where it belongs.
Paul Eggert [Thu, 2 Jun 2005 05:19:46 +0000 (05:19 +0000)]
Regenerate.
Paul Eggert [Thu, 2 Jun 2005 05:19:03 +0000 (05:19 +0000)]
Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.
Paul Eggert [Thu, 2 Jun 2005 05:17:24 +0000 (05:17 +0000)]
Don't use "path" or "filename".
Paul Eggert [Thu, 2 Jun 2005 05:15:07 +0000 (05:15 +0000)]
Don't use "path" or "filename".
(struct file_name): Renamed from struct Path. All uses changed.
(file_name_free): Renamed from path_free. All uses changed.
(file_name_init): Renamed from path_init. All uses changed.
(file_name_prepend): Renamed from path_prepend. All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:14:32 +0000 (05:14 +0000)]
Don't use "path" or "filename".
(make_link_name): Renamed from make_link_path. All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:13:57 +0000 (05:13 +0000)]
(FILE_BASENAME_CONCAT): Renamed from PATH_BASENAME_CONCAT.
All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:13:29 +0000 (05:13 +0000)]
Don't use "path" or "filename".
(install_file_in_file_parents): Renamed from
install_file_to_path. All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:12:59 +0000 (05:12 +0000)]
Don't use "path" or "filename".
Don't include "path-concat.h"; not needed.
Paul Eggert [Thu, 2 Jun 2005 05:12:17 +0000 (05:12 +0000)]
Don't use "path" or "filename".
(usage): Don't use "path" to describe a file name.
(remove_empty_parents): Renamed from empty_paths.
All uses changed.
(longopts): Add comment that --path is deprecated.
Paul Eggert [Thu, 2 Jun 2005 05:11:32 +0000 (05:11 +0000)]
(usage): Don't use "path" to describe a file name.
Paul Eggert [Thu, 2 Jun 2005 05:11:01 +0000 (05:11 +0000)]
Don't use "path" or "filename".
(parents_option): Renamed from flag_path. All uses changed.
(make_dir_parents_private): Renamed from make_path_private.
All uses changed.
(usage): Don't use "path" to describe a file name.
Paul Eggert [Thu, 2 Jun 2005 05:09:44 +0000 (05:09 +0000)]
Don't use "path" or "filename" to mean "file name".
Hence, rename makepath.m4 to mkdir-p.m4, and rename path-concat.m4
to filenamecat.m4.
Paul Eggert [Thu, 2 Jun 2005 05:08:51 +0000 (05:08 +0000)]
Don't use "path" or "filename" to mean "file name".
Paul Eggert [Thu, 2 Jun 2005 05:06:56 +0000 (05:06 +0000)]
Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards. As part of this,
rename makepath.c to mkdir-p.c, and path-concat.c to filenamecat.c,
and likewise for the .h files.
Paul Eggert [Thu, 2 Jun 2005 05:05:29 +0000 (05:05 +0000)]
Don't use "path" or "filename" to mean "file name"
in comments or local variable names.
Paul Eggert [Thu, 2 Jun 2005 05:02:38 +0000 (05:02 +0000)]
(excluded_file_name): Renamed from excluded_filename.
All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:02:14 +0000 (05:02 +0000)]
Don't use "path" or "filename" to mean "file name"
in comments or local variable names.
(excluded_file_name): Renamed from excluded_filename.
All uses changed.
Paul Eggert [Thu, 2 Jun 2005 05:00:50 +0000 (05:00 +0000)]
Use "file name" when talking about file names, instead of "filename"
or "path", as per the GNU coding standards.
Paul Eggert [Thu, 2 Jun 2005 05:00:24 +0000 (05:00 +0000)]
(readlink invocation): "path component" ->
"component", since we don't use the POSIX "path" nomenclature.
Paul Eggert [Thu, 2 Jun 2005 04:59:51 +0000 (04:59 +0000)]
Renamed from path-concat.m4.
(gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
Rename files from path-concat.c to filenamecat.c,
and from path-concat.h to filenamecat.h.