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/ls.c,v
28 retrieving revision 1.435
29 diff -u -p -r1.435 ls.c
30 --- src/ls.c 9 Aug 2006 09:45:17 -0000 1.435
31 +++ src/ls.c 17 Aug 2006 09:18:52 -0000
32 @@ -3139,13 +3139,14 @@ sort_files (void)
34 assert (sort_type != sort_version);
38 /* When sort_type == sort_time, use time_type as subindex. */
39 int timeoffset = sort_type == sort_time ? time_type : 0;
41 qsort (files, files_index, sizeof *files,
42 sort_functions[sort_type + timeoffset][use_strcmp][sort_reverse]
47 /* List all the files now in the table. */
49 ===================================================================
50 RCS file: /fetish/cu/src/remove.c,v
51 retrieving revision 1.156
52 diff -u -p -r1.156 remove.c
53 --- src/remove.c 3 Jul 2006 17:38:20 -0000 1.156
54 +++ src/remove.c 17 Aug 2006 09:18:52 -0000
55 @@ -202,9 +202,10 @@ pop_dir (Dirstack_state *ds)
57 size_t n_lengths = obstack_object_size (&ds->len_stack) / sizeof (size_t);
58 size_t *length = obstack_base (&ds->len_stack);
61 assert (n_lengths > 0);
62 - size_t top_len = length[n_lengths - 1];
63 + top_len = length[n_lengths - 1];
64 assert (top_len >= 2);
66 /* Pop the specified length of file name. */
67 @@ -336,10 +337,11 @@ AD_stack_top (Dirstack_state const *ds)
69 AD_stack_pop (Dirstack_state *ds)
72 assert (0 < AD_stack_height (ds));
74 /* operate on Active_dir. pop and free top entry */
75 - struct AD_ent *top = AD_stack_top (ds);
76 + top = AD_stack_top (ds);
78 hash_free (top->unremovable);
79 obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent));
80 @@ -506,6 +508,7 @@ AD_mark_helper (Hash_table **ht, char *f
85 void *ent = hash_insert (*ht, filename);
88 @@ -514,7 +517,7 @@ AD_mark_helper (Hash_table **ht, char *f
96 /* Mark FILENAME (in current directory) as unremovable. */
97 @@ -1059,6 +1062,7 @@ fd_to_subdirp (int fd_cwd, char const *f
102 DIR *subdir_dirp = fdopendir (fd_sub);
103 if (subdir_dirp == NULL)
105 @@ -1067,6 +1071,7 @@ fd_to_subdirp (int fd_cwd, char const *f
112 /* Remove entries in the directory open on DIRP
113 @@ -1302,9 +1307,10 @@ remove_dir (int fd_cwd, Dirstack_state *
114 /* The name of the directory that we have just processed,
115 nominally removing all of its contents. */
119 AD_pop_and_chdir (&dirp, ds, &empty_dir);
120 - int fd = (dirp != NULL ? dirfd (dirp) : AT_FDCWD);
121 + fd = (dirp != NULL ? dirfd (dirp) : AT_FDCWD);
122 assert (dirp != NULL || AD_stack_height (ds) == 1);
124 /* Try to remove EMPTY_DIR only if remove_cwd_entries succeeded. */
125 @@ -1381,6 +1387,7 @@ rm_1 (Dirstack_state *ds, char const *fi
126 AD_push_initial (ds);
127 AD_INIT_OTHER_MEMBERS ();
130 int fd_cwd = AT_FDCWD;
131 enum RM_status status = remove_entry (fd_cwd, ds, filename, x, NULL);
132 if (status == RM_NONEMPTY_DIR)
133 @@ -1399,6 +1406,7 @@ rm_1 (Dirstack_state *ds, char const *fi
140 /* Remove all files and/or directories specified by N_FILES and FILE.
141 @@ -1421,9 +1429,11 @@ rm (size_t n_files, char const *const *f
144 cycle_check_init (&ds->cycle_check_state);
146 enum RM_status s = rm_1 (ds, file[i], x, &cwd_errno);
147 assert (VALID_STATUS (s));
148 UPDATE_STATUS (status, s);
152 if (x->require_restore_cwd && cwd_errno)
154 ===================================================================
155 RCS file: /fetish/cu/src/rm.c,v
156 retrieving revision 1.139
157 diff -u -p -r1.139 rm.c
158 --- src/rm.c 20 Feb 2006 12:48:11 -0000 1.139
159 +++ src/rm.c 17 Aug 2006 09:18:52 -0000
160 @@ -358,8 +358,10 @@ main (int argc, char **argv)
165 enum RM_status status = rm (n_files, file, &x);
166 assert (VALID_STATUS (status));
167 exit (status == RM_ERROR ? EXIT_FAILURE : EXIT_SUCCESS);