summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg>2009-02-04 21:29:40 +0000
committerjoerg <joerg>2009-02-04 21:29:40 +0000
commitc545a46fa7e5eb53a971a9cda25aa9cac6492542 (patch)
tree191364eb878a25005c126245d0b1255757c643ce /net
parent772f60945885fc919a26dacbfa5b5b9070c7924c (diff)
downloadpkgsrc-c545a46fa7e5eb53a971a9cda25aa9cac6492542.tar.gz
fetch-1.1:
Include sys/ioctl.h for ioctl(2). Fix missing argument in warn(3) call.
Diffstat (limited to 'net')
-rw-r--r--net/fetch/Makefile4
-rw-r--r--net/fetch/files/fetch.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/net/fetch/Makefile b/net/fetch/Makefile
index 0f56807a6fa..e33e723b235 100644
--- a/net/fetch/Makefile
+++ b/net/fetch/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/10/08 15:28:30 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2009/02/04 21:29:40 joerg Exp $
#
-DISTNAME= fetch-1.0
+DISTNAME= fetch-1.1
CATEGORIES= net
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/net/fetch/files/fetch.c b/net/fetch/files/fetch.c
index c7f36a912ca..1eb8f7e3e72 100644
--- a/net/fetch/files/fetch.c
+++ b/net/fetch/files/fetch.c
@@ -36,6 +36,7 @@
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
+#include <sys/ioctl.h>
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@@ -600,7 +601,7 @@ fetch(char *URL, const char *path)
fd = mkstemp(tmppath);
if (fd == -1) {
- warn("%s: mkstemp failed");
+ warn("%s: mkstemp failed", tmppath);
goto failure;
}
fchown(fd, sb.st_uid, sb.st_gid);