summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-06-15install -D had a problem similar to mkdir -p.Paul Eggert
2005-06-14Improve diagnostics for restore_cwd failure.Paul Eggert
2005-06-14(make_dir): Remove. All uses replaced by mkdir.Paul Eggert
(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).
2005-06-14(make_dir): Remove. All uses replaced by mkdir.Paul Eggert
(make_dir_parents): Last arg is now int * (for errno), not bool *.
2005-06-14(create_parents): Remove static var (now local to 'main').Paul Eggert
(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.
2005-06-14(main): Standardize on a diagnostic forPaul Eggert
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).
2005-06-14mkdir-p cleanup.Paul Eggert
2005-06-14Adjust to new make_dir_parents convention.Paul Eggert
2005-06-14(main): Adjust to new make_dir_parents convention.Paul Eggert
2005-06-14(CLEANUP_CWD, CLEANUP): Remove.Paul Eggert
(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.
2005-06-14*** empty log message ***Jim Meyering
2005-06-14Reflect s/_die/_fail/ renaming.Jim Meyering
2005-06-14(openat_save_fail): Rename from openat_save_die.Jim Meyering
(openat_restore_fail): Rename from openat_restore_die.
2005-06-14*** empty log message ***Jim Meyering
2005-06-14Ensure mkdir succeeds if the following argument is an absolute directory name.Jim Meyering
2005-06-14clarify commentJim Meyering
2005-06-14*** empty log message ***Jim Meyering
2005-06-14(CLEANUP_CWD): Return *true*, not false when failingJim Meyering
to restore initial working directory.
2005-06-14*** empty log message ***Jim Meyering
2005-06-14Change openat.c to openat-die.c.Jim Meyering
2005-06-14*** empty log message ***Jim Meyering
2005-06-14(my-distcheck): Add -Wall to the list of options thatJim Meyering
are used with -Werror. This target is not intended for general use.
2005-06-14.Jim Meyering
2005-06-14tweak diagnostic wording: Use `... return to working directory', ratherJim Meyering
than `... restore working directory'.
2005-06-14whoops.Jim Meyering
redirect stderr to dev/null
2005-06-14.Jim Meyering
2005-06-14*** empty log message ***Jim Meyering
2005-06-14(TESTS): Add p-3.Jim Meyering
2005-06-14remove obsolete FIXMEJim Meyering
2005-06-14*** empty log message ***Jim Meyering
2005-06-14(gl_FUNC_OPENAT): Add openat-die.c.Jim Meyering
2005-06-14*** empty log message ***Jim Meyering
2005-06-14(openat_save_die, openat_restore_die): New file.Jim Meyering
2005-06-14(openat_save_die, openat_restore_die): Declare and define.Jim Meyering
2005-06-14Provide an alternative to exiting immediately upon save_cwd orJim Meyering
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.
2005-06-13*** empty log message ***Jim Meyering
2005-06-13(make_dir_parents): Update prototype.Jim Meyering
2005-06-13*** empty log message ***Jim Meyering
2005-06-13*** empty log message ***Jim Meyering
2005-06-13*** empty log message ***Jim Meyering
2005-06-13(main): When make_dir_parents changes the current workingJim Meyering
directory, give a diagnostic about each subsequent failure to create a dot-relative directory. (install_file_in_file_parents): Update make_dir_parents caller.
2005-06-13(main): When make_dir_parents changes the current workingJim Meyering
directory, give a diagnostic about each subsequent failure to create a dot-relative directory.
2005-06-13(make_dir_parents): New parameter: different_working_dir,Jim Meyering
to tell caller if/when we change the working directory and are unable to return to the initial one.
2005-06-12*** empty log message ***Jim Meyering
2005-06-12(CLEANUP_CWD): Change one more `return 1' to `return false'.Jim Meyering
This fixes a bug introduced on 2004-07-30.
2005-06-10Act on the Austin Group's response yesterday to XCU ERN 63.Paul Eggert
2005-06-10(any_has_acl): New var.Paul Eggert
(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.
2005-06-10Remove the extra spaces in "ls -l" output.Paul Eggert
2005-06-10ls no longer outputs an extra space between mode and link count.Paul Eggert
2005-06-10*** empty log message ***Jim Meyering