Allow for longer filenames from the redirector.

This commit ensures that filenames up to the maximum size supported
by our xfs can be supported.
This commit is contained in:
matt335672 2024-07-30 13:35:37 +01:00
parent a90228241d
commit c3f7eec4f5

View File

@ -53,6 +53,7 @@
#include "log.h"
#include "chansrv.h"
#include "chansrv_fuse.h"
#include "chansrv_xfs.h"
#include "devredir.h"
#include "smartcard.h"
#include "ms-rdpefs.h"
@ -1251,7 +1252,13 @@ devredir_proc_query_dir_response(IRP *irp,
return -1;
}
// Size the filename buffer so it's big enough for
// storing the file in our filesystem if we need to.
#ifdef XFS_MAXFILENAMELEN
char filename[XFS_MAXFILENAMELEN + 1];
#else
char filename[256];
#endif
tui64 LastAccessTime;
tui64 LastWriteTime;
tui64 EndOfFile;