From a1983dd5ba00bd780f7beca39dfd4b7028250baf Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Wed, 18 Sep 2013 08:20:02 +0000 Subject: Fix build under 10-CURRENT. --- net/44bsd-rdist/files/patch-expand.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/44bsd-rdist/files/patch-expand.c (limited to 'net/44bsd-rdist/files/patch-expand.c') 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; -- cgit v1.2.3