diff options
author | enami <enami@pkgsrc.org> | 2002-05-09 01:40:03 +0000 |
---|---|---|
committer | enami <enami@pkgsrc.org> | 2002-05-09 01:40:03 +0000 |
commit | 970b4d7c9754c30dfa7616b69ae06215dfb6a6d8 (patch) | |
tree | 5c5e1fe1f53ac2cfd35440922b2d7a301311f542 /devel/ccache | |
parent | d4714d630b827d15f36d9ce91730eff0f0623e07 (diff) | |
download | pkgsrc-970b4d7c9754c30dfa7616b69ae06215dfb6a6d8.tar.gz |
Test if close(2) is failed after writing to file. This is necssary if
a file is on nfs filesystem.
Diffstat (limited to 'devel/ccache')
-rw-r--r-- | devel/ccache/distinfo | 3 | ||||
-rw-r--r-- | devel/ccache/patches/patch-aa | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/devel/ccache/distinfo b/devel/ccache/distinfo index ab85e63eff4..d96a4be273d 100644 --- a/devel/ccache/distinfo +++ b/devel/ccache/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.2 2002/05/07 05:22:50 tron Exp $ +$NetBSD: distinfo,v 1.3 2002/05/09 01:40:03 enami Exp $ SHA1 (ccache-1.8.tar.gz) = 54a65bca01549aeeb1320db73f2f0803f3df6db5 Size (ccache-1.8.tar.gz) = 62148 bytes +SHA1 (patch-aa) = caafca94d1e2a9a86a8d66959d3a23083e2c0a40 diff --git a/devel/ccache/patches/patch-aa b/devel/ccache/patches/patch-aa new file mode 100644 index 00000000000..f4413130b5a --- /dev/null +++ b/devel/ccache/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1 2002/05/09 01:40:04 enami Exp $ + +--- util.c.orig Sat Apr 6 22:48:03 2002 ++++ util.c +@@ -83,8 +83,11 @@ + } + } + +- close(fd2); + close(fd1); ++ if (close(fd2) == -1) { ++ unlink(dest); ++ return -1; ++ } + return 0; + } + |