From 4bf9fe82c059fae6bc9e68a479aadce9b4704c1f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 8 Mar 2007 22:09:11 +0100 Subject: * src/c99-to-c89.diff: Reflect the new c99'ism, update offsets. --- ChangeLog | 4 ++++ src/c99-to-c89.diff | 25 +++++++++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13e1b747d..5fa5de663 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-08 Jim Meyering + + * src/c99-to-c89.diff: Reflect the new c99'ism, update offsets. + 2007-03-08 Paul Eggert 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; + } -- cgit v1.2.3-54-g00ecf