usernames ending in bytes end up with large bandwidth usage

Version 1.42


If you have a username, say mybytes, the script: /usr/local/directadmin/scripts/ would find: /etc/virtual/usage/mybytes /etc/virtual/usage/mybytes.bytes instead of just: /etc/virtual/usage/mybytes.bytes for rotation into the bandwidth.tally. This caused 11111 characters to be added to the bandwidth.tally file for that User (without a newline character), thus adding that many characters to the leading count of bytes for that tally line. Basically, it would add something like: 111111645534=type=tally.. etc.. to the bandwidth.tally making the bandwidth many orders of magnitude higher than it should be. Fix was to change the not to do that.

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