platform/upstream/coreutils.git
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

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 07:47:57 +0000 (07:47 +0000)]
*** empty log message ***

19 years ago(gl_FUNC_OPENAT): Add openat-die.c.
Jim Meyering [Tue, 14 Jun 2005 07:47:52 +0000 (07:47 +0000)]
(gl_FUNC_OPENAT): Add openat-die.c.

19 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jun 2005 06:55:32 +0000 (06:55 +0000)]
*** empty log message ***

19 years ago(openat_save_die, openat_restore_die): New file.
Jim Meyering [Tue, 14 Jun 2005 06:55:24 +0000 (06:55 +0000)]
(openat_save_die, openat_restore_die): New file.

19 years ago(openat_save_die, openat_restore_die): Declare and define.
Jim Meyering [Tue, 14 Jun 2005 06:54:57 +0000 (06:54 +0000)]
(openat_save_die, openat_restore_die): Declare and define.

19 years agoProvide an alternative to exiting immediately upon save_cwd or
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.

19 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jun 2005 10:22:29 +0000 (10:22 +0000)]
*** empty log message ***

19 years ago(make_dir_parents): Update prototype.
Jim Meyering [Mon, 13 Jun 2005 10:22:26 +0000 (10:22 +0000)]
(make_dir_parents): Update prototype.

19 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jun 2005 10:21:32 +0000 (10:21 +0000)]
*** empty log message ***

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

19 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jun 2005 10:19:23 +0000 (10:19 +0000)]
*** empty log message ***

19 years ago(main): When make_dir_parents changes the current working
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.

19 years ago(main): When make_dir_parents changes the current working
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.

19 years ago(make_dir_parents): New parameter: different_working_dir,
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.

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

19 years ago(CLEANUP_CWD): Change one more `return 1' to `return false'.
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.

19 years agoAct on the Austin Group's response yesterday to XCU ERN 63.
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.

19 years ago(any_has_acl): New var.
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.

19 years agoRemove the extra spaces in "ls -l" output.
Paul Eggert [Fri, 10 Jun 2005 19:31:24 +0000 (19:31 +0000)]
Remove the extra spaces in "ls -l" output.

19 years agols no longer outputs an extra space between mode and link count.
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.

19 years ago*** empty log message ***
Jim Meyering [Fri, 10 Jun 2005 16:42:33 +0000 (16:42 +0000)]
*** empty log message ***

19 years ago(VERIFY_W_TYPEOF): Add parentheses.
Jim Meyering [Fri, 10 Jun 2005 16:42:28 +0000 (16:42 +0000)]
(VERIFY_W_TYPEOF): Add parentheses.

19 years agoChange filesystems to `file systems'.
Jim Meyering [Thu, 9 Jun 2005 09:22:27 +0000 (09:22 +0000)]
Change filesystems to `file systems'.

19 years ago*** empty log message ***
Jim Meyering [Tue, 7 Jun 2005 06:41:18 +0000 (06:41 +0000)]
*** empty log message ***

19 years ago(ln invocation): Examples, from Bob Proulx.
Jim Meyering [Tue, 7 Jun 2005 06:40:40 +0000 (06:40 +0000)]
(ln invocation): Examples, from Bob Proulx.

19 years agoFix typo in comment.
Paul Eggert [Fri, 3 Jun 2005 04:49:30 +0000 (04:49 +0000)]
Fix typo in comment.

19 years agoRegenerate.
Paul Eggert [Thu, 2 Jun 2005 19:54:02 +0000 (19:54 +0000)]
Regenerate.

19 years agoSync from gnulib.
Paul Eggert [Thu, 2 Jun 2005 19:49:27 +0000 (19:49 +0000)]
Sync from gnulib.

19 years ago*** empty log message ***
Jim Meyering [Thu, 2 Jun 2005 11:38:49 +0000 (11:38 +0000)]
*** empty log message ***

19 years agoChange makepath.c to mkdir-p.c here, too.
Jim Meyering [Thu, 2 Jun 2005 11:38:46 +0000 (11:38 +0000)]
Change makepath.c to mkdir-p.c here, too.

19 years ago*** empty log message ***
Jim Meyering [Thu, 2 Jun 2005 10:04:32 +0000 (10:04 +0000)]
*** empty log message ***

19 years ago(usage): Put `Ordering options:' line where it belongs.
Jim Meyering [Thu, 2 Jun 2005 10:02:29 +0000 (10:02 +0000)]
(usage): Put `Ordering options:' line where it belongs.

19 years agoRegenerate.
Paul Eggert [Thu, 2 Jun 2005 05:19:46 +0000 (05:19 +0000)]
Regenerate.

19 years agoUse "file name" when talking about file names, instead of "filename"
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.

19 years agoDon't use "path" or "filename".
Paul Eggert [Thu, 2 Jun 2005 05:17:24 +0000 (05:17 +0000)]
Don't use "path" or "filename".

19 years agoDon'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.

19 years agoDon't use "path" or "filename".
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.

19 years ago(FILE_BASENAME_CONCAT): Renamed from PATH_BASENAME_CONCAT.
Paul Eggert [Thu, 2 Jun 2005 05:13:57 +0000 (05:13 +0000)]
(FILE_BASENAME_CONCAT): Renamed from PATH_BASENAME_CONCAT.
All uses changed.

19 years agoDon't use "path" or "filename".
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.

19 years agoDon't use "path" or "filename".
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.

19 years agoDon't use "path" or "filename".
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.

19 years ago(usage): Don't use "path" to describe a file name.
Paul Eggert [Thu, 2 Jun 2005 05:11:32 +0000 (05:11 +0000)]
(usage): Don't use "path" to describe a file name.

19 years agoDon't use "path" or "filename".
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.

19 years agoDon't use "path" or "filename" to mean "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.

19 years agoDon't use "path" or "filename" to mean "file name".
Paul Eggert [Thu, 2 Jun 2005 05:08:51 +0000 (05:08 +0000)]
Don't use "path" or "filename" to mean "file name".

19 years agoUse "file name" when talking about file names, instead of "filename"
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.

19 years agoDon't use "path" or "filename" to mean "file name"
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.

19 years ago(excluded_file_name): Renamed from excluded_filename.
Paul Eggert [Thu, 2 Jun 2005 05:02:38 +0000 (05:02 +0000)]
(excluded_file_name): Renamed from excluded_filename.
All uses changed.

19 years agoDon't use "path" or "filename" to mean "file name"
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.

19 years agoUse "file name" when talking about file names, instead of "filename"
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.

19 years ago(readlink invocation): "path component" ->
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.

19 years agoRenamed from path-concat.m4.
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.

19 years agoRenamed from path-concat.c.
Paul Eggert [Thu, 2 Jun 2005 04:59:10 +0000 (04:59 +0000)]
Renamed from path-concat.c.
(file_name_concat): Renamed from path_concat.  All callers changed.
[TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.

19 years agoRenamed from path-concat.h. All includers changed.
Paul Eggert [Thu, 2 Jun 2005 04:58:26 +0000 (04:58 +0000)]
Renamed from path-concat.h.  All includers changed.
(file_name_concat): Renamed from path_concat.  All callers changed.

19 years agoRenamed from makepath.m4.
Paul Eggert [Thu, 2 Jun 2005 04:57:31 +0000 (04:57 +0000)]
Renamed from makepath.m4.
(gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
Rename files from makepath.c to mkdir-p.c, and from
makepath.h to mkdir-p.h.

19 years agoRenamed from makepath.h. All includers changed.
Paul Eggert [Thu, 2 Jun 2005 04:56:41 +0000 (04:56 +0000)]
Renamed from makepath.h.  All includers changed.
(make_dir_parents): Renamed from make_path.  All callers changed.

19 years agoRenamed from makepath.c.
Paul Eggert [Thu, 2 Jun 2005 04:55:35 +0000 (04:55 +0000)]
Renamed from makepath.c.
(make_dir_parents): Renamed from make_path.  All callers changed.

19 years ago*** empty log message ***
Jim Meyering [Tue, 31 May 2005 07:06:26 +0000 (07:06 +0000)]
*** empty log message ***

19 years ago(chown_privileges, chown_failure_ok): Mark as `extern'.
Jim Meyering [Tue, 31 May 2005 07:06:23 +0000 (07:06 +0000)]
(chown_privileges, chown_failure_ok): Mark as `extern'.
This is a crutch so that `make distcheck's sc_tight_scope rule
knows that they really are deliberately declared that way.

19 years agoPort to Solaris 10's rules for whether programs can chown files.
Paul Eggert [Tue, 31 May 2005 06:16:51 +0000 (06:16 +0000)]
Port to Solaris 10's rules for whether programs can chown files.

19 years ago(cp_options_init): Use chown_privileges rather than geteuid.
Paul Eggert [Tue, 31 May 2005 06:16:09 +0000 (06:16 +0000)]
(cp_options_init): Use chown_privileges rather than geteuid.

19 years ago(re_protect): Remove unnecessary call to geteuid.
Paul Eggert [Tue, 31 May 2005 06:15:48 +0000 (06:15 +0000)]
(re_protect): Remove unnecessary call to geteuid.
Use chown_failure_ok rather than our own code.
(cp_options_init): Use chown_privileges rather than getuid.

19 years agoAdd copyright notice.
Paul Eggert [Tue, 31 May 2005 06:15:18 +0000 (06:15 +0000)]
Add copyright notice.
(struct cp_options): Remove myeuid member.  Add chown_privileges
member.
(chown_privileges, chown_failure_ok): New function decls.

19 years agoPort to Solaris 10's rules for whether programs can chown files.
Paul Eggert [Tue, 31 May 2005 06:14:24 +0000 (06:14 +0000)]
Port to Solaris 10's rules for whether programs can chown files.
[HAVE_PRIV_H]: Include <priv.h>.
(DO_CHOWN): Remove.  Replaced by chown_failure_ok.  All callers
changed.
(copy_internal): If chown failed, don't worry about what happened
to the mode bits; they can't have changed.
(chown_privileges, chown_failure_ok): New functions.

19 years ago* jm-macros.m4 (gl_CHECK_ALL_HEADERS): Check for priv.h.
Paul Eggert [Tue, 31 May 2005 06:13:44 +0000 (06:13 +0000)]
* jm-macros.m4 (gl_CHECK_ALL_HEADERS): Check for priv.h.

19 years ago(gl_CHECK_ALL_HEADERS): Check for priv.h.
Paul Eggert [Tue, 31 May 2005 06:13:25 +0000 (06:13 +0000)]
(gl_CHECK_ALL_HEADERS): Check for priv.h.

19 years ago.
Jim Meyering [Mon, 30 May 2005 09:04:13 +0000 (09:04 +0000)]
.

19 years agoRegenerate.
Paul Eggert [Mon, 30 May 2005 07:41:32 +0000 (07:41 +0000)]
Regenerate.

19 years ago_POSIX_VERSION cleanup
Paul Eggert [Mon, 30 May 2005 07:37:02 +0000 (07:37 +0000)]
_POSIX_VERSION cleanup

19 years agoInclude sys/param.h if it exists, not if _POSIX_VERSION
Paul Eggert [Mon, 30 May 2005 07:34:23 +0000 (07:34 +0000)]
Include sys/param.h if it exists, not if _POSIX_VERSION
isn't defined.
Don't include <sys/file.h>; no longer needed.
(getegid, geteuid): Remove no-longer-necessary decls.

19 years agoDon't bother mentioning _POSIX_VERSION in comment.
Paul Eggert [Mon, 30 May 2005 07:33:55 +0000 (07:33 +0000)]
Don't bother mentioning _POSIX_VERSION in comment.

19 years ago(OPENOPTS, TEXT1T01, TEXTCNVT): Remove.
Paul Eggert [Mon, 30 May 2005 07:33:38 +0000 (07:33 +0000)]
(OPENOPTS, TEXT1T01, TEXTCNVT): Remove.
(digest_file): Use O_BINARY-using expr instead of OPENOPTS.

19 years ago(getpwnam, getgrnam): Remove decl.
Paul Eggert [Mon, 30 May 2005 07:33:16 +0000 (07:33 +0000)]
(getpwnam, getgrnam): Remove decl.
(getuid, getgid) [!defined _POSIX_VERSION]: Remove decls.

19 years ago(getpwuid, getgrgid, getuid, getgid, geteuid, getegid)
Paul Eggert [Mon, 30 May 2005 07:33:00 +0000 (07:33 +0000)]
(getpwuid, getgrgid, getuid, getgid, geteuid, getegid)
[!defined _POSIX_VERSION]: Remove decls.

19 years ago(geteuid) [!defined _POSIX_VERSION]: Remove decl.
Paul Eggert [Mon, 30 May 2005 07:32:16 +0000 (07:32 +0000)]
(geteuid) [!defined _POSIX_VERSION]: Remove decl.

19 years ago(getgrnam, getgrgid) [!defined _POSIX_VERSION]:
Paul Eggert [Mon, 30 May 2005 07:31:51 +0000 (07:31 +0000)]
(getgrnam, getgrgid) [!defined _POSIX_VERSION]:
Remove decls.

19 years ago(getgrnam) [!defined _POSIX_VERSION]: Remove decl.
Paul Eggert [Mon, 30 May 2005 07:31:31 +0000 (07:31 +0000)]
(getgrnam) [!defined _POSIX_VERSION]: Remove decl.

19 years ago(getpwnam, getgrnam, getgrgid)
Paul Eggert [Mon, 30 May 2005 07:31:12 +0000 (07:31 +0000)]
(getpwnam, getgrnam, getgrgid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.

19 years agoInclude <limits.h> unconditionally, since other
Paul Eggert [Mon, 30 May 2005 07:30:51 +0000 (07:30 +0000)]
Include <limits.h> unconditionally, since other
files have been getting away with it for years (MORE/BSD 4.3
is extinct now).