2 ===================================================================
3 RCS file: /fetish/cu/src/copy.c,v
4 retrieving revision 1.203
5 diff -u -p -r1.203 copy.c
6 --- src/copy.c 29 Jul 2006 17:13:28 -0000 1.203
7 +++ src/copy.c 17 Aug 2006 09:18:52 -0000
8 @@ -1168,7 +1168,7 @@ copy_internal (char const *src_name, cha
14 bool backup_directories = true;
15 if (x->backup_type != no_backups
16 && (!S_ISDIR (dst_sb.st_mode) || backup_directories))
17 @@ -1235,6 +1235,7 @@ copy_internal (char const *src_name, cha
26 ===================================================================
27 RCS file: /fetish/cu/src/remove.c,v
28 retrieving revision 1.156
29 diff -u -p -r1.156 remove.c
30 --- src/remove.c 3 Jul 2006 17:38:20 -0000 1.156
31 +++ src/remove.c 17 Aug 2006 09:18:52 -0000
32 @@ -202,9 +202,10 @@ pop_dir (Dirstack_state *ds)
34 size_t n_lengths = obstack_object_size (&ds->len_stack) / sizeof (size_t);
35 size_t *length = obstack_base (&ds->len_stack);
38 assert (n_lengths > 0);
39 - size_t top_len = length[n_lengths - 1];
40 + top_len = length[n_lengths - 1];
41 assert (top_len >= 2);
43 /* Pop the specified length of file name. */
44 @@ -336,10 +337,11 @@ AD_stack_top (Dirstack_state const *ds)
46 AD_stack_pop (Dirstack_state *ds)
49 assert (0 < AD_stack_height (ds));
51 /* operate on Active_dir. pop and free top entry */
52 - struct AD_ent *top = AD_stack_top (ds);
53 + top = AD_stack_top (ds);
55 hash_free (top->unremovable);
56 obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent));
57 @@ -506,6 +508,7 @@ AD_mark_helper (Hash_table **ht, char *f
62 void *ent = hash_insert (*ht, filename);
65 @@ -514,7 +517,7 @@ AD_mark_helper (Hash_table **ht, char *f
73 /* Mark FILENAME (in current directory) as unremovable. */
74 @@ -1059,6 +1062,7 @@ fd_to_subdirp (int fd_cwd, char const *f
79 DIR *subdir_dirp = fdopendir (fd_sub);
80 if (subdir_dirp == NULL)
82 @@ -1067,6 +1071,7 @@ fd_to_subdirp (int fd_cwd, char const *f
89 /* Remove entries in the directory open on DIRP
90 @@ -1302,9 +1307,10 @@ remove_dir (int fd_cwd, Dirstack_state *
91 /* The name of the directory that we have just processed,
92 nominally removing all of its contents. */
96 AD_pop_and_chdir (&dirp, ds, &empty_dir);
97 - int fd = (dirp != NULL ? dirfd (dirp) : AT_FDCWD);
98 + fd = (dirp != NULL ? dirfd (dirp) : AT_FDCWD);
99 assert (dirp != NULL || AD_stack_height (ds) == 1);
101 /* Try to remove EMPTY_DIR only if remove_cwd_entries succeeded. */
102 @@ -1381,6 +1387,7 @@ rm_1 (Dirstack_state *ds, char const *fi
103 AD_push_initial (ds);
104 AD_INIT_OTHER_MEMBERS ();
107 int fd_cwd = AT_FDCWD;
108 enum RM_status status = remove_entry (fd_cwd, ds, filename, x, NULL);
109 if (status == RM_NONEMPTY_DIR)
110 @@ -1399,6 +1406,7 @@ rm_1 (Dirstack_state *ds, char const *fi
117 /* Remove all files and/or directories specified by N_FILES and FILE.
118 @@ -1421,9 +1429,11 @@ rm (size_t n_files, char const *const *f
121 cycle_check_init (&ds->cycle_check_state);
123 enum RM_status s = rm_1 (ds, file[i], x, &cwd_errno);
124 assert (VALID_STATUS (s));
125 UPDATE_STATUS (status, s);
129 if (x->require_restore_cwd && cwd_errno)
131 ===================================================================
132 RCS file: /fetish/cu/src/rm.c,v
133 retrieving revision 1.139
134 diff -u -p -r1.139 rm.c
135 --- src/rm.c 20 Feb 2006 12:48:11 -0000 1.139
136 +++ src/rm.c 17 Aug 2006 09:18:52 -0000
137 @@ -358,8 +358,10 @@ main (int argc, char **argv)
142 enum RM_status status = rm (n_files, file, &x);
143 assert (VALID_STATUS (status));
144 exit (status == RM_ERROR ? EXIT_FAILURE : EXIT_SUCCESS);