diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-31 16:26:41 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-31 16:26:41 +0000 |
commit | 585d713d9d6086b776ee53349d84b9eaf8979549 (patch) | |
tree | 7e49383bdbc28dcf0bded78d33fe31b211bea399 /local.c | |
parent | [w3m-dev 03721] PATH_INFO support of local CGI (diff) | |
download | w3m-585d713d9d6086b776ee53349d84b9eaf8979549.tar.gz w3m-585d713d9d6086b776ee53349d84b9eaf8979549.zip |
fix indent
Diffstat (limited to 'local.c')
-rw-r--r-- | local.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: local.c,v 1.26 2003/01/31 16:25:09 ukai Exp $ */ +/* $Id: local.c,v 1.27 2003/01/31 16:26:41 ukai Exp $ */ #include "fm.h" #include <string.h> #include <stdio.h> @@ -186,9 +186,7 @@ check_local_cgi(char *file, int status) return -1; if (S_ISDIR(st.st_mode)) return -1; - 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 */ + 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; return -1; } @@ -324,7 +322,7 @@ cgi_filename(char *uri, char **fn, char **name, char **path_info) Str tmp2 = Strnew_charp(document_root); if (Strlastchar(tmp2) != '/') Strcat_char(tmp2, '/'); - Strcat_charp(tmp2, uri + 1); + Strcat_charp(tmp2, uri + 1); if (strncmp(tmp2->ptr, tmp->ptr, tmp->length) != 0) return CGIFN_NORMAL; uri = tmp2->ptr; |