pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/srm Fix build on Interix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9a85319b5a5a
branches:  trunk
changeset: 502028:9a85319b5a5a
user:      tv <tv%pkgsrc.org@localhost>
date:      Tue Nov 01 18:59:34 2005 +0000

description:
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:

 security/srm/distinfo         |   3 ++-
 security/srm/patches/patch-aa |  14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 8f03bf11810a -r 9a85319b5a5a security/srm/distinfo
--- a/security/srm/distinfo     Tue Nov 01 18:52:45 2005 +0000
+++ b/security/srm/distinfo     Tue Nov 01 18:59:34 2005 +0000
@@ -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 -r 8f03bf11810a -r 9a85319b5a5a security/srm/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/srm/patches/patch-aa     Tue Nov 01 18:59:34 2005 +0000
@@ -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.



Home | Main Index | Thread Index | Old Index