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.
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.
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.
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.
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.
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.
Jim Meyering [Tue, 31 May 2005 07:06:26 +0000 (07:06 +0000)]
*** empty log message ***
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.
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.
Paul Eggert [Tue, 31 May 2005 06:16:09 +0000 (06:16 +0000)]
(cp_options_init): Use chown_privileges rather than 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.
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.
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.
Paul Eggert [Tue, 31 May 2005 06:13:44 +0000 (06:13 +0000)]
* jm-macros.m4 (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.
Jim Meyering [Mon, 30 May 2005 09:04:13 +0000 (09:04 +0000)]
.
Paul Eggert [Mon, 30 May 2005 07:41:32 +0000 (07:41 +0000)]
Regenerate.
Paul Eggert [Mon, 30 May 2005 07:37:02 +0000 (07:37 +0000)]
_POSIX_VERSION cleanup
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.
Paul Eggert [Mon, 30 May 2005 07:33:55 +0000 (07:33 +0000)]
Don't bother mentioning _POSIX_VERSION in comment.
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.
Paul Eggert [Mon, 30 May 2005 07:33:16 +0000 (07:33 +0000)]
(getpwnam, getgrnam): Remove decl.
(getuid, getgid) [!defined _POSIX_VERSION]: Remove decls.
Paul Eggert [Mon, 30 May 2005 07:33:00 +0000 (07:33 +0000)]
(getpwuid, getgrgid, getuid, getgid, geteuid, getegid)
[!defined _POSIX_VERSION]: Remove decls.
Paul Eggert [Mon, 30 May 2005 07:32:16 +0000 (07:32 +0000)]
(geteuid) [!defined _POSIX_VERSION]: Remove decl.
Paul Eggert [Mon, 30 May 2005 07:31:51 +0000 (07:31 +0000)]
(getgrnam, getgrgid) [!defined _POSIX_VERSION]:
Remove decls.
Paul Eggert [Mon, 30 May 2005 07:31:31 +0000 (07:31 +0000)]
(getgrnam) [!defined _POSIX_VERSION]: Remove decl.
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.
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).
Paul Eggert [Mon, 30 May 2005 07:30:31 +0000 (07:30 +0000)]
(getpwuid, getpwnam, getgrgid, getgrnam)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
Paul Eggert [Mon, 30 May 2005 07:30:01 +0000 (07:30 +0000)]
(getuid, getgid, getuid, getegid)
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
Paul Eggert [Mon, 30 May 2005 07:05:07 +0000 (07:05 +0000)]
(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
Define to 256, not 255, as per modern POSIX.
Paul Eggert [Sat, 28 May 2005 04:24:14 +0000 (04:24 +0000)]
dd seek=N now conforms to POSIX if the output isn't seekable.
Paul Eggert [Sat, 28 May 2005 04:22:43 +0000 (04:22 +0000)]
dd seek=N now conforms to POSIX if the output isn't seekable.
Paul Eggert [Sat, 28 May 2005 04:22:26 +0000 (04:22 +0000)]
(skip): Return the number of records that were not
skipped due to encountering EOF.
(dd_copy): If the file wasn't seekable and EOF was encountered,
write zeros past EOF until the desired offset is reached.
Paul Eggert [Sat, 28 May 2005 00:01:15 +0000 (00:01 +0000)]
* fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.
Paul Eggert [Sat, 28 May 2005 00:01:00 +0000 (00:01 +0000)]
(gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
and don't require gt_INTTYPES_PRI.