SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
32
misc/magicpoint/patches/patch-contrib_mgpnet_in
Normal file
32
misc/magicpoint/patches/patch-contrib_mgpnet_in
Normal file
|
@ -0,0 +1,32 @@
|
|||
--- contrib/mgpnet.in.orig Sun Feb 15 19:14:34 2009
|
||||
+++ contrib/mgpnet.in Sun Feb 15 19:15:32 2009
|
||||
@@ -256,20 +256,7 @@ sub httpserver {
|
||||
$httpmethod = $httppath = $httpver = '';
|
||||
($httpmethod, $httppath, $httpver) = split(/\s+/, $httpreq);
|
||||
$httppath =~ s/http:\/\/[^:\/]+(:\d+)\//\//;
|
||||
- if ($httpver eq '' || $httpver eq 'HTTP/1.0') {
|
||||
- ; # ok
|
||||
- } else {
|
||||
- &httpheader(501, $cthtml) if ($httpver);
|
||||
|
||||
- print <<EOF;
|
||||
-<HEAD><TITLE>Version not implemented</TITLE></HEAD>
|
||||
-<BODY><H1>Version not implemented</H1>
|
||||
-HTTP protocol version $httpversion not supported.<P>
|
||||
-</BODY>
|
||||
-EOF
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
$httphost = "$hostname:$port";
|
||||
if ($httpver) {
|
||||
while (<NS>) {
|
||||
@@ -415,7 +402,7 @@ sub guessparam {
|
||||
'XXX4', 'SO_REUSEPORT', 'XXX5', 'SOCK_STREAM', 'XXX6', 'WNOHANG',
|
||||
);
|
||||
$tmpnam = &tmpname;
|
||||
- open(CPP, "| @CPP@ >$tmpnam") || return;
|
||||
+ open(CPP, "| @CPP@ - >$tmpnam") || return;
|
||||
print CPP "#include <sys/socket.h>\n";
|
||||
print CPP "#include <sys/wait.h>\n";
|
||||
foreach $tmp (keys %varnames) {
|
Loading…
Add table
Add a link
Reference in a new issue