mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Repair some clearly incorrect code found while looking
for problems similar to the previous vulnerability.
This commit is contained in:
parent
6202dce78e
commit
5691597fbc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61060
27
news/nn/files/patch-global.c
Normal file
27
news/nn/files/patch-global.c
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user