diff options
author | Jim Meyering <jim@meyering.net> | 2007-03-08 22:09:11 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-03-08 22:09:11 +0100 |
commit | 4bf9fe82c059fae6bc9e68a479aadce9b4704c1f (patch) | |
tree | 82983055808e3c09412a8ae946413c476a3f65c3 | |
parent | fe068c60fbe1b0e3a9d89b31ce48aa8f4a00a07b (diff) | |
download | coreutils-4bf9fe82c059fae6bc9e68a479aadce9b4704c1f.tar.xz |
* src/c99-to-c89.diff: Reflect the new c99'ism, update offsets.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/c99-to-c89.diff | 25 |
2 files changed, 25 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2007-03-08 Jim Meyering <jim@meyering.net> + + * src/c99-to-c89.diff: Reflect the new c99'ism, update offsets. + 2007-03-08 Paul Eggert <eggert@cs.ucla.edu> rm without -f: give a better diagnostic when euidaccess fails. diff --git a/src/c99-to-c89.diff b/src/c99-to-c89.diff index 997b0093a..770d6bdec 100644 --- a/src/c99-to-c89.diff +++ b/src/c99-to-c89.diff @@ -31,7 +31,24 @@ index 4728bdd..7477da5 100644 if (top->unremovable) hash_free (top->unremovable); obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent)); -@@ -1481,6 +1483,7 @@ rm_1 (Dirstack_state *ds, char const *fi +@@ -815,6 +817,7 @@ prompt (int fd_cwd, Dirstack_state const *ds, char const *filename, + + if (write_protected || x->interactive == RMI_ALWAYS) + { ++ char const *quoted_name = quote (full_filename (filename)); + if (write_protected <= 0 + && cache_fstatat (fd_cwd, filename, sbuf, AT_SYMLINK_NOFOLLOW) != 0) + { +@@ -832,8 +835,6 @@ prompt (int fd_cwd, Dirstack_state const *ds, char const *filename, + write_protected = EISDIR; + } + +- char const *quoted_name = quote (full_filename (filename)); +- + if (0 < write_protected) + { + error (0, write_protected, _("cannot remove %s"), quoted_name); +@@ -1487,6 +1488,7 @@ rm_1 (Dirstack_state *ds, char const *filename, return RM_ERROR; } @@ -39,7 +56,7 @@ index 4728bdd..7477da5 100644 struct stat st; cache_stat_init (&st); cycle_check_init (&ds->cycle_check_state); -@@ -1503,6 +1506,7 @@ rm_1 (Dirstack_state *ds, char const *fi +@@ -1509,6 +1511,7 @@ rm_1 (Dirstack_state *ds, char const *filename, AD_push_initial (ds); AD_INIT_OTHER_MEMBERS (); @@ -47,8 +64,8 @@ index 4728bdd..7477da5 100644 enum RM_status status = remove_entry (AT_FDCWD, ds, filename, &st, x, NULL); if (status == RM_NONEMPTY_DIR) { -@@ -1519,6 +1523,8 @@ rm_1 (Dirstack_state *ds, char const *fi - +@@ -1525,6 +1528,8 @@ rm_1 (Dirstack_state *ds, char const *filename, + ds_clear (ds); return status; + } |