summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-02-04 21:29:40 +0000
committerjoerg <joerg@pkgsrc.org>2009-02-04 21:29:40 +0000
commitf844ede02aaf53a1bcdb63712e107bfda5509ed9 (patch)
tree191364eb878a25005c126245d0b1255757c643ce /net
parent07dc81bc6575e06185ac5ae22e6abdb48963e8a5 (diff)
downloadpkgsrc-f844ede02aaf53a1bcdb63712e107bfda5509ed9.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);