SHA256
1
0
forked from pool/pure-ftpd
pure-ftpd/pure-ftpd-1.0.49_ftpwho_path.patch

21 lines
490 B
Diff

--- src/ftpwho-update.h 2019-03-25 16:48:42.000000000 +0100
+++ src/ftpwho-update.h 2020-04-27 16:07:03.449049599 +0200
@@ -26,6 +26,9 @@
volatile off_t download_total_size;
volatile off_t download_current_size;
char account[MAX_USER_LENGTH + 1U];
+#ifdef PATH_MAX
+ char filename[PATH_MAX];
+#else
#if defined(__OpenBSD__)
char filename[1024];
#else
@@ -39,6 +42,7 @@
char filename[1024];
# endif
#endif
+#endif
} FTPWhoEntry;
int ftpwho_initwho(void);