aboutsummaryrefslogtreecommitdiffstats
path: root/local.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2006-04-07 13:21:11 +0000
committerDai Sato <satodai@w3m.jp>2006-04-07 13:21:11 +0000
commit22d66ca5850bf0190aa48d7f4442484f01fc7d02 (patch)
tree5b96b7e5bd65f08ad23867bc0738a0fef56f35df /local.c
parentapply multiple patches on w3m-dev(-en) ML since Jun 2005 to Jan 2006. (diff)
downloadw3m-22d66ca5850bf0190aa48d7f4442484f01fc7d02.tar.gz
w3m-22d66ca5850bf0190aa48d7f4442484f01fc7d02.zip
rewind to 10 Feb 2006.
Diffstat (limited to 'local.c')
-rw-r--r--local.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/local.c b/local.c
index e3b9260..8da1fc7 100644
--- a/local.c
+++ b/local.c
@@ -1,4 +1,4 @@
-/* $Id: local.c,v 1.32 2006/04/05 14:18:54 inu Exp $ */
+/* $Id: local.c,v 1.33 2006/04/07 13:21:11 inu Exp $ */
#include "fm.h"
#include <string.h>
#include <stdio.h>
@@ -16,10 +16,6 @@
#include "local.h"
#include "hash.h"
-#ifdef __MINGW32_VERSION
-#include <winsock.h>
-#endif
-
#define CGIFN_NORMAL 0
#define CGIFN_LIBDIR 1
#define CGIFN_CGIBIN 2
@@ -197,10 +193,8 @@ check_local_cgi(char *file, int status)
return -1;
if (S_ISDIR(st.st_mode))
return -1;
-#ifndef __MINGW32_VERSION
if ((st.st_uid == geteuid() && (st.st_mode & S_IXUSR)) || (st.st_gid == getegid() && (st.st_mode & S_IXGRP)) || (st.st_mode & S_IXOTH)) /* executable */
return 0;
-#endif
return -1;
}
@@ -359,9 +353,6 @@ localcgi_post(char *uri, char *qstr, FormList *request, char *referer)
pid_t pid;
char *file = uri, *name = uri, *path_info = NULL, *tmpf = NULL;
-#ifdef __MINGW32_VERSION
- return NULL;
-#else
status = cgi_filename(uri, &file, &name, &path_info);
if (check_local_cgi(file, status) < 0)
return NULL;
@@ -421,5 +412,4 @@ localcgi_post(char *uri, char *qstr, FormList *request, char *referer)
file, mybasename(file), strerror(errno));
exit(1);
return NULL;
-#endif
}