this fixes version.h and adds a User-Agent field on HTTP requests. it is diffed against an httpfs with my previous patch applied. diff -ur old/Makefile.am httpfs-0.1/Makefile.am --- old/Makefile.am 2002-11-23 21:44:48.000000000 +0100 +++ httpfs-0.1/Makefile.am 2002-11-24 13:41:22.000000000 +0100 @@ -12,4 +12,4 @@ extract.c \ node.c \ httpfs.h -INCLUDES = -I@includedir@ `xml2-config --cflags` +INCLUDES = -I@includedir@ `xml2-config --cflags` -DOSNAME=\"$(shell if ! OSNAME=`uname -o` ; then OSNAME=`uname -s` ; fi ; echo $$OSNAME)\" -DARCH=\"$(shell uname -m)\" diff -ur old/http.c httpfs-0.1/http.c --- old/http.c 2002-04-15 21:25:42.000000000 +0200 +++ httpfs-0.1/http.c 2002-11-24 13:47:40.000000000 +0100 @@ -30,6 +30,7 @@ #include <stddef.h> #include "httpfs.h" +#include "version.h" #include <hurd/hurd_types.h> #include <hurd/netfs.h> @@ -110,7 +111,7 @@ } /* Send a HEAD request find header length */ - sprintf(buffer,"HEAD HTTP/1.0 \n\n",node->conn_req); + sprintf(buffer,"HEAD HTTP/1.0 \nUser-Agent: Mozilla/5.0 (U; ; rv:) \n\n",node->conn_req, OSNAME, ARCH, VERSION, NAME); towrite = strlen (buffer); written = TEMP_FAILURE_RETRY (write (*fd, buffer, towrite)); if ( written == -1 || written < towrite ) diff -ur old/version.h httpfs-0.1/version.h --- old/version.h 2002-11-23 21:32:08.000000000 +0100 +++ httpfs-0.1/version.h 2002-11-24 13:30:06.000000000 +0100 @@ -1,2 +1,3 @@ -#define NAME Http Translator -#define VERSION 0.1 + +#define NAME "Http Translator" +#define VERSION "0.1"