summaryrefslogtreecommitdiff
path: root/security/srm
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-11-01 18:59:34 +0000
committertv <tv@pkgsrc.org>2005-11-01 18:59:34 +0000
commit22fb1ab262929efeb239652c51289b7ab14a816d (patch)
tree7d09fed9f3f84b3203c2aa1bd2e5ded69aede94c /security/srm
parent7732ef56d6ec404ec45e7bb2f349dae830352b6b (diff)
downloadpkgsrc-22fb1ab262929efeb239652c51289b7ab14a816d.tar.gz
Fix build on Interix.
(The presence of this sync(2) call is somewhat suspect, given that the call guarantees almost nothing in today's virtual memory implementations, but it is left in for other OS's that do support it.)
Diffstat (limited to 'security/srm')
-rw-r--r--security/srm/distinfo3
-rw-r--r--security/srm/patches/patch-aa14
2 files changed, 16 insertions, 1 deletions
diff --git a/security/srm/distinfo b/security/srm/distinfo
index 16483b96de9..e8c544bb6e4 100644
--- a/security/srm/distinfo
+++ b/security/srm/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 13:10:13 agc Exp $
+$NetBSD: distinfo,v 1.3 2005/11/01 18:59:34 tv Exp $
SHA1 (srm-1.2.8.tar.gz) = 8b7aafc95b3ef67e2c737030567222bf50082188
RMD160 (srm-1.2.8.tar.gz) = d1ce5fe2ec13e45c5620e6a71c1f2dfcb49ab1bc
Size (srm-1.2.8.tar.gz) = 88067 bytes
+SHA1 (patch-aa) = a94522473ee72315d3ab38bfa70f336290431b9b
diff --git a/security/srm/patches/patch-aa b/security/srm/patches/patch-aa
new file mode 100644
index 00000000000..ef12de0051b
--- /dev/null
+++ b/security/srm/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1 2005/11/01 18:59:34 tv Exp $
+
+--- src/rename_unlink.c.orig 2003-04-08 12:16:56.000000000 -0400
++++ src/rename_unlink.c
+@@ -45,7 +45,9 @@ int rename_unlink(const char *path) {
+ if (rename(path, new_name) == -1)
+ return -1;
+
++#ifndef __INTERIX
+ sync();
++#endif
+
+ if (lstat(new_name, &statbuf) == -1) {
+ /* Bad mojo, we just renamed to new_name and now the path is invalid.