]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Correct a typo that rendered an if statment to always be true.
authorJohn Wolfe <jwolfe@vmware.com>
Mon, 19 Apr 2021 18:08:11 +0000 (11:08 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Mon, 19 Apr 2021 18:08:11 +0000 (11:08 -0700)
open-vm-tools/lib/file/file.c

index a2924a50aab4ee8e6f2253cb020a4392ce0b3717..aabe983a2f608fbb7824dee4f840fd0bd239b2ba 100644 (file)
@@ -2515,7 +2515,7 @@ FileRotateByRenumber(const char *filePath,       // IN: full path to file
          const char *nr = fileList[i] + baseNameLen + 1;
 
          /* No leading zeros; zero is invalid; must be a valid ASCII digit */
-         if ((nr[0] >= '1') || (nr[0] <= '9')) {
+         if ((nr[0] >= '1') && (nr[0] <= '9')) {
             uint32 curNr;
             char *endNr = NULL;