diff options
author | Cy Schubert <cy@FreeBSD.org> | 2013-09-18 08:20:02 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2013-09-18 08:20:02 +0000 |
commit | a1983dd5ba00bd780f7beca39dfd4b7028250baf (patch) | |
tree | 48d3e7de08a28767a7d513c6ac21921acd7f8231 | |
parent | 5fff9d4bfc9249eedcbb59a7190032a2d02b8ba8 (diff) | |
download | ports-a1983dd5ba00bd780f7beca39dfd4b7028250baf.tar.gz ports-a1983dd5ba00bd780f7beca39dfd4b7028250baf.zip |
Notes
-rw-r--r-- | comms/conserver/files/patch-etc-conserver-master.c | 23 | ||||
-rw-r--r-- | net/44bsd-rdist/files/patch-expand.c | 11 | ||||
-rw-r--r-- | security/cops/files/patch-src-crc.c | 11 |
3 files changed, 45 insertions, 0 deletions
diff --git a/comms/conserver/files/patch-etc-conserver-master.c b/comms/conserver/files/patch-etc-conserver-master.c new file mode 100644 index 000000000000..6c45ce8e02dc --- /dev/null +++ b/comms/conserver/files/patch-etc-conserver-master.c @@ -0,0 +1,23 @@ +--- etc/conserver/master.c.orig 2000-08-02 11:39:42.000000000 -0700 ++++ etc/conserver/master.c 2013-09-18 00:48:10.621087079 -0700 +@@ -200,17 +200,17 @@ + + if ((msfd=socket(AF_INET, SOCK_STREAM, 0)) < 0) { + fprintf(stderr, "%s: socket: %s\n", progname, strerror(errno)); +- return; ++ return 0; + } + #if defined(SO_REUSEADDR) && defined(SOL_SOCKET) + if (setsockopt(msfd, SOL_SOCKET, SO_REUSEADDR, (char *)&iTrue, sizeof(iTrue))<0) { + fprintf(stderr, "%s: setsockopt: %s\n", progname, strerror(errno)); +- return; ++ return 0; + } + #endif + if (bind(msfd, (struct sockaddr *)&master_port, sizeof(master_port))<0) { + fprintf(stderr, "%s: bind: %s\n", progname, strerror(errno)); +- return; ++ return 0; + } + if (listen(msfd, SOMAXCONN) < 0) { + fprintf(stderr, "%s: listen: %s\n", progname, strerror(errno)); diff --git a/net/44bsd-rdist/files/patch-expand.c b/net/44bsd-rdist/files/patch-expand.c new file mode 100644 index 000000000000..4c052f4e4e89 --- /dev/null +++ b/net/44bsd-rdist/files/patch-expand.c @@ -0,0 +1,11 @@ +--- expand.c.orig 2013-09-17 23:46:26.681322944 -0700 ++++ expand.c 2013-09-18 00:29:13.792410201 -0700 +@@ -309,7 +309,7 @@ + return; + goto patherr2; + } +- if (fstat(dirp->dd_fd, &stb) < 0) ++ if (fstat(dirfd(dirp), &stb) < 0) + goto patherr1; + if (!ISDIR(stb.st_mode)) { + errno = ENOTDIR; diff --git a/security/cops/files/patch-src-crc.c b/security/cops/files/patch-src-crc.c new file mode 100644 index 000000000000..73605f43c243 --- /dev/null +++ b/security/cops/files/patch-src-crc.c @@ -0,0 +1,11 @@ +--- src/crc.c.orig 1993-03-25 08:31:42.000000000 -0800 ++++ src/crc.c 2013-09-18 00:52:27.281917756 -0700 +@@ -237,7 +237,7 @@ + /* quietly ignore files we can't stat */ + + if (name != NULL && stat(name, &stat_buf) != 0) +- return; ++ return 0; + + /* don't do a crc on strange files */ + |