Jim Meyering
d319227170
*** empty log message ***
2005-06-17 13:11:47 +00:00
Paul Eggert
4df2411290
* src/hostid.c (main): Don't print fewer than 8 digits, or spurious leading "f".
2005-06-16 23:46:27 +00:00
Jim Meyering
0812004419
*** empty log message ***
2005-06-16 21:49:22 +00:00
Jim Meyering
e13ab085ed
*** empty log message ***
2005-06-16 21:47:19 +00:00
Jim Meyering
c95fdb8372
Don't embed `this'-style quotes in format strings.
...
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:44:25 +00:00
Jim Meyering
f682977c0c
whoops: Adding quote(...) isn't enough :)
...
remove quotes from the string, too.
2005-06-16 21:41:57 +00:00
Jim Meyering
0cda9b5eb8
Don't embed `this'-style quotes in format strings.
...
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:40:43 +00:00
Jim Meyering
0919e29116
Don't embed `this'-style quotes in format strings.
...
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:39:10 +00:00
Jim Meyering
a38ee1953f
Don't embed `this'-style quotes in format strings.
...
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:38:27 +00:00
Jim Meyering
f696c57a8e
Don't embed `this'-style quotes in format strings.
...
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:37:37 +00:00
Jim Meyering
f07a234d1d
Don't embed `this'-style quotes in format strings.
...
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:36:48 +00:00
Jim Meyering
4d2d749ee6
Don't embed `this'-style quotes in format strings.
...
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:35:40 +00:00
Jim Meyering
3787d01a51
Don't embed `this'-style quotes in format strings.
...
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:33:43 +00:00
Jim Meyering
0441b743b0
Rather than this: error (..., "...`%s'...", arg);
...
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:28:41 +00:00
Jim Meyering
e50dc3f9fb
Rather than this: error (..., "...`%s'...", arg);
...
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:28:12 +00:00
Jim Meyering
a5c9e15482
*** empty log message ***
2005-06-16 14:52:33 +00:00
Jim Meyering
5371690c7f
(rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
...
when either N or S is zero.
2005-06-16 14:52:29 +00:00
Jim Meyering
8236e056a0
*** empty log message ***
2005-06-16 09:16:25 +00:00
Jim Meyering
27a8fa0664
(Backup options): Undocument --version-control=S (-V).
2005-06-16 09:16:16 +00:00
Jim Meyering
4e0c954244
*** empty log message ***
2005-06-16 09:15:45 +00:00
Jim Meyering
74f54dae78
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.
2005-06-16 09:15:23 +00:00
Jim Meyering
154e1cc930
.
2005-06-15 09:53:34 +00:00
Jim Meyering
7dd05aa715
Reflect s/_die/_fail/ renaming.
2005-06-15 09:38:12 +00:00
Jim Meyering
e2dba23e1a
*** empty log message ***
2005-06-15 09:31:20 +00:00
Jim Meyering
e18177dfbe
Ensure that rel-named dirs are not created when chdir($PWD) fails.
2005-06-15 09:31:16 +00:00
Jim Meyering
39b87363ae
Ensure that each `-d'-specified directory is created.
2005-06-15 09:04:21 +00:00
Jim Meyering
ec5b4733d8
(main): Fix my typo: s/argv[optind]/file[i]/.
2005-06-15 08:54:21 +00:00
Jim Meyering
8add4ac9cb
*** empty log message ***
2005-06-15 08:32:14 +00:00
Jim Meyering
88a7148929
Add a test for just-fixed bug in mkdir-p.c.
2005-06-15 08:32:11 +00:00
Jim Meyering
d4145e48ed
(make_dir_parents): Don't let a failed chdir($PWD)
...
stop us from restricting permissions of just-created absolute-named
directories.
2005-06-15 08:31:44 +00:00
Paul Eggert
1c4348d7e8
Fix typo in previous checkin.
2005-06-15 00:06:34 +00:00
Paul Eggert
1fc9a26bdd
install -D had a problem similar to mkdir -p.
2005-06-15 00:05:20 +00:00
Paul Eggert
f2c653e8df
Improve diagnostics for restore_cwd failure.
2005-06-14 23:58:00 +00:00
Paul Eggert
153854cc31
(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).
2005-06-14 23:56:49 +00:00
Paul Eggert
616a6e5146
(make_dir): Remove. All uses replaced by mkdir.
...
(make_dir_parents): Last arg is now int * (for errno), not bool *.
2005-06-14 23:56:17 +00:00
Paul Eggert
0b2ac253e7
(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.
2005-06-14 23:55:47 +00:00
Paul Eggert
3f47e8458a
(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).
2005-06-14 23:55:24 +00:00
Paul Eggert
d203fc19ae
mkdir-p cleanup.
2005-06-14 18:36:44 +00:00
Paul Eggert
9c0241d8e2
Adjust to new make_dir_parents convention.
2005-06-14 18:36:25 +00:00
Paul Eggert
7cc0d42200
(main): Adjust to new make_dir_parents convention.
2005-06-14 18:35:58 +00:00
Paul Eggert
f7bbc5d1a2
(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.
2005-06-14 18:35:38 +00:00
Jim Meyering
5c3c5b0586
*** empty log message ***
2005-06-14 09:46:39 +00:00
Jim Meyering
b95fca684c
Reflect s/_die/_fail/ renaming.
2005-06-14 09:46:24 +00:00
Jim Meyering
f23e1c18a8
(openat_save_fail): Rename from openat_save_die.
...
(openat_restore_fail): Rename from openat_restore_die.
2005-06-14 09:44:54 +00:00
Jim Meyering
e6b19a2245
*** empty log message ***
2005-06-14 09:00:05 +00:00
Jim Meyering
dbc8afd399
Ensure mkdir succeeds if the following argument is an absolute directory name.
2005-06-14 09:00:00 +00:00
Jim Meyering
cb7512d04d
clarify comment
2005-06-14 08:55:37 +00:00
Jim Meyering
cb3b87f4d7
*** empty log message ***
2005-06-14 08:53:11 +00:00
Jim Meyering
1fbdda3dc2
(CLEANUP_CWD): Return *true*, not false when failing
...
to restore initial working directory.
2005-06-14 08:48:13 +00:00
Jim Meyering
3b6523f00a
*** empty log message ***
2005-06-14 08:26:43 +00:00