We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1973aa commit 792b8e3Copy full SHA for 792b8e3
src/lib/lwan-request.c
@@ -1110,7 +1110,6 @@ body_data_finalizer(const struct lwan_value *buffer,
1110
__attribute__((cold))
1111
static const char *is_dir_good_for_tmp(const char *v)
1112
{
1113
- struct statfs sb;
1114
struct stat st;
1115
1116
if (!v)
@@ -1132,11 +1131,14 @@ static const char *is_dir_good_for_tmp(const char *v)
1132
1131
v);
1133
}
1134
+#ifndef __OpenBSD__ /* OpenBSD doesn't have f_type */
1135
+ struct statfs sb;
1136
if (!statfs(v, &sb) && sb.f_type == TMPFS_MAGIC) {
1137
lwan_status_warning("%s is a tmpfs filesystem, "
1138
"not considering it", v);
1139
return NULL;
1140
1141
+#endif
1142
1143
return v;
1144
0 commit comments