File pure-ftpd-1.0.49_ftpwho_path.patch of Package pure-ftpd

--- 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);
openSUSE Build Service is sponsored by