diff options
author | Omar Polo <op@omarpolo.com> | 2023-07-01 14:11:18 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-07-01 14:11:18 +0000 |
commit | e2003e7e305adabd1ee575e401a55e6d7e050297 (patch) | |
tree | 766714ed6373af441f97c82d621fb6a6347d7f8c /gmid.h | |
parent | 2339a71178cc4a29dd2eada458c84b6092b056ce (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.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -325,12 +325,6 @@ struct connreq { int flag; }; -enum { - FILE_EXISTS, - FILE_DIRECTORY, - FILE_MISSING, -}; - enum imsg_type { IMSG_FCGI_REQ, IMSG_FCGI_FD, |