aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-01 14:11:18 +0000
committerOmar Polo <op@omarpolo.com>2023-07-01 14:11:18 +0000
commite2003e7e305adabd1ee575e401a55e6d7e050297 (patch)
tree766714ed6373af441f97c82d621fb6a6347d7f8c /gmid.h
parent2339a71178cc4a29dd2eada458c84b6092b056ce (diff)
simplify request handling
get rid of check_path(), it's overly complicated. Instead, inline open_file() in client_read() and rework open_dir() to just use openat() instead of the complicate dance it was doing. Simplify open_dir() too in the process: if the directory entry for the index is not a regular file, pretend it doesn't exist.
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gmid.h b/gmid.h
index 8cad485..885a7a7 100644
--- a/gmid.h
+++ b/gmid.h
@@ -325,12 +325,6 @@ struct connreq {
int flag;
};
-enum {
- FILE_EXISTS,
- FILE_DIRECTORY,
- FILE_MISSING,
-};
-
enum imsg_type {
IMSG_FCGI_REQ,
IMSG_FCGI_FD,