]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* src/c99-to-c89.diff: Reflect the new c99'ism, update offsets.
authorJim Meyering <jim@meyering.net>
Thu, 8 Mar 2007 21:09:11 +0000 (22:09 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 8 Mar 2007 21:09:11 +0000 (22:09 +0100)
ChangeLog
src/c99-to-c89.diff

index 13e1b747d968fe42f4b02aa470e2b665625e7446..5fa5de66388be062764c96e3997d7f45c7d683c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 997b0093aa7a4b13face513872ac8718be3777df..770d6bdec4533fd39986d7f63c43721101cd8345 100644 (file)
@@ -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;
 +  }