diff options
author | nectar <nectar@FreeBSD.org> | 2002-06-10 23:37:46 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-06-10 23:37:46 +0800 |
commit | 898e3cc3779a52f904f3c1877adf6292d43e24a5 (patch) | |
tree | 3a6f8c57476fc23133c17b709641338c6a64fd3e /news | |
parent | 9e054865a2f7a528c512a3506e4ae3a96e33d161 (diff) | |
download | freebsd-ports-gnome-898e3cc3779a52f904f3c1877adf6292d43e24a5.tar.gz freebsd-ports-gnome-898e3cc3779a52f904f3c1877adf6292d43e24a5.tar.zst freebsd-ports-gnome-898e3cc3779a52f904f3c1877adf6292d43e24a5.zip |
Repair some clearly incorrect code found while looking
for problems similar to the previous vulnerability.
Diffstat (limited to 'news')
-rw-r--r-- | news/nn/files/patch-global.c | 27 |
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); + } + |