From: John Wolfe Date: Mon, 19 Apr 2021 18:08:11 +0000 (-0700) Subject: Correct a typo that rendered an if statment to always be true. X-Git-Tag: stable-11.3.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65519ffb067661ecea1e0bae077dea5d3ce23197;p=thirdparty%2Fopen-vm-tools.git Correct a typo that rendered an if statment to always be true. --- diff --git a/open-vm-tools/lib/file/file.c b/open-vm-tools/lib/file/file.c index a2924a50a..aabe983a2 100644 --- a/open-vm-tools/lib/file/file.c +++ b/open-vm-tools/lib/file/file.c @@ -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;