summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2002-06-10 15:37:46 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2002-06-10 15:37:46 +0000
commit5691597fbcc7b1f422e73fcfc4952949eb37acd6 (patch)
treec0f3f79cc05339241a68b6dff950c0970c42bdba /news
parentCorrect gtk+/glib libraries names in .pc files. (diff)
Repair some clearly incorrect code found while looking
for problems similar to the previous vulnerability.
Notes
Notes: svn path=/head/; revision=61060
Diffstat (limited to 'news')
-rw-r--r--news/nn/files/patch-global.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/news/nn/files/patch-global.c b/news/nn/files/patch-global.c
new file mode 100644
index 000000000000..aa7260d1536b
--- /dev/null
+++ b/news/nn/files/patch-global.c
@@ -0,0 +1,27 @@
+--- global.c.orig Mon Jun 10 10:29:25 2002
++++ global.c Mon Jun 10 10:30:51 2002
+@@ -585,20 +585,20 @@
+ off_t len1, len2;
+
+ if ((fd1 = open(work, O_RDONLY, 0)) < 0) {
+- nn_exitmsg("%s %s", work, strerror(errno));
++ msg("%s %s", work, strerror(errno));
+ return(2);
+ }
+ if ((fd2 = open(copy, O_RDONLY, 0)) < 0) {
+- nn_exitmsg("%s %s", copy, strerror(errno));
++ msg("%s %s", copy, strerror(errno));
+ return(2);
+ }
+
+ if (fstat(fd1, &sb1)) {
+- nn_exitmsg("%s %s", work, strerror(errno));
++ msg("%s %s", work, strerror(errno));
+ return(2);
+ }
+ if (fstat(fd2, &sb2)) {
+- nn_exitmsg("%s %s", copy, strerror(errno));
++ msg("%s %s", copy, strerror(errno));
+ return(2);
+ }
+