From: John Wolfe Date: Fri, 22 Jan 2021 20:25:41 +0000 (-0800) Subject: lib/file/file.c: Use Err_Errno instead of errno directly. X-Git-Tag: stable-11.3.0~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecf07f0bf6cbab57c9e970efa32ca53e6c207aab;p=thirdparty%2Fopen-vm-tools.git lib/file/file.c: Use Err_Errno instead of errno directly. --- diff --git a/open-vm-tools/lib/file/file.c b/open-vm-tools/lib/file/file.c index c6480b4f9..a0707b8dd 100644 --- a/open-vm-tools/lib/file/file.c +++ b/open-vm-tools/lib/file/file.c @@ -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; }