]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/file/file.c: Use Err_Errno instead of errno directly.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 22 Jan 2021 20:25:41 +0000 (12:25 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 22 Jan 2021 20:25:41 +0000 (12:25 -0800)
open-vm-tools/lib/file/file.c

index c6480b4f984860083741eb53a9dd6f76f6c55236..a0707b8ddb7194ee41389883c1512a9436a1e747 100644 (file)
@@ -2511,7 +2511,8 @@ FileRotateByRenumber(const char *filePath,       // IN: full path to file
          errno = 0;
          curNr = strtoul(nr, &endNr, 10);
 
-         if ((errno != 0) || (endNr - nr != nrLen)) {  // out of range; vmware-1C.log
+         if ((Err_Errno() != 0) ||     // out of range; vmware-1C.log
+             (endNr - nr != nrLen)) {
             goto skip;
          }