summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/tmpreaper/files')
-rw-r--r--app-admin/tmpreaper/files/digest-tmpreaper-1.6.73
-rw-r--r--app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch46
2 files changed, 49 insertions, 0 deletions
diff --git a/app-admin/tmpreaper/files/digest-tmpreaper-1.6.7 b/app-admin/tmpreaper/files/digest-tmpreaper-1.6.7
new file mode 100644
index 000000000000..dedfc6a2536c
--- /dev/null
+++ b/app-admin/tmpreaper/files/digest-tmpreaper-1.6.7
@@ -0,0 +1,3 @@
+MD5 dc15b160a8d58be5a784d17e42ebdc15 tmpreaper_1.6.7.tar.gz 120095
+RMD160 849c65973c1e51ee35f72c38cd2b4359f30c64bd tmpreaper_1.6.7.tar.gz 120095
+SHA256 64736b3c7fe4c947dd85c2bd82d8e3cb79c3acd69acb3b008b03906553b8b1a6 tmpreaper_1.6.7.tar.gz 120095
diff --git a/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch b/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch
new file mode 100644
index 000000000000..a76c80dd5fc7
--- /dev/null
+++ b/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch
@@ -0,0 +1,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) ||