blob: a76c80dd5fc712de0f22b0091d410348ef6e6975 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
--- tmpreaper.c.orig 2006-12-05 10:55:58.000000000 -0800
+++ tmpreaper.c 2006-12-05 10:56:46.000000000 -0800
@@ -467,6 +467,21 @@
continue;
}
+ if (FLAGS_PROTECT_P (flags)) {
+ skip = i = 0;
+ do {
+ if (sb.st_ino == protect_table[i].inode) {
+ message (LOG_VERBOSE,
+ "Entry matching `--protect' pattern skipped. `%s'\n",
+ protect_table[i].name);
+ skip = 1;
+ break;
+ }
+ } while (protect_table[i++].name);
+ if (skip)
+ continue;
+ }
+
if (S_ISDIR (sb.st_mode)) {
char *dst;
@@ -489,21 +504,6 @@
(u_int) getpid(), ent->d_name);
}
- if (FLAGS_PROTECT_P (flags)) {
- skip = i = 0;
- do {
- if (sb.st_ino == protect_table[i].inode) {
- message (LOG_VERBOSE,
- "Entry matching `--protect' pattern skipped. `%s'\n",
- protect_table[i].name);
- skip = 1;
- break;
- }
- } while (protect_table[i++].name);
- if (skip)
- continue;
- }
-
/* Decide whether to remove the file or not */
/* check for mtime on directory instead of atime if requested */
if ( FLAGS_MTIME_P(flags) ||
|