Files larger than 2 gig are not found by DA

Version 1.235


Files read in by the filemanager and in the user_backups directory do not show up if they are larger than 2 gig in size. Problem is related to the stat() funciton and the "struct stat" structure that uses a 32-bit number for the filesizes. A 2 gig file will require a 64-bit number, thus the stat() function fails and DA skips the file. Currently testing with: -D _FILE_OFFSET_BITS=64 at compile time. TODO: update the makefiles for each OS to use that option. Tested and working on RH 9.

Interested to try DirectAdmin? Get a 30-day Free Trial!