aboutsummaryrefslogtreecommitdiff
path: root/net/44bsd-rdist
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2013-09-18 08:20:02 +0000
committerCy Schubert <cy@FreeBSD.org>2013-09-18 08:20:02 +0000
commita1983dd5ba00bd780f7beca39dfd4b7028250baf (patch)
tree48d3e7de08a28767a7d513c6ac21921acd7f8231 /net/44bsd-rdist
parent5fff9d4bfc9249eedcbb59a7190032a2d02b8ba8 (diff)
downloadports-a1983dd5ba00bd780f7beca39dfd4b7028250baf.tar.gz
ports-a1983dd5ba00bd780f7beca39dfd4b7028250baf.zip
Fix build under 10-CURRENT.
Notes
Notes: svn path=/head/; revision=327533
Diffstat (limited to 'net/44bsd-rdist')
-rw-r--r--net/44bsd-rdist/files/patch-expand.c11
1 files changed, 11 insertions, 0 deletions
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;