1From 4b69d8fd78bf6edbc8b4ace58e621d46071fd8dc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 24 Mar 2021 17:26:53 -0400
4Subject: [PATCH 2/2] Use uintmax_t for handling rlim_t
5
6rlimit types are not representable with long or long long
7formats, therefore use uintmax_t to typecast rlim_t types
8and use %j to print it
9
10Refit patch for open-vm-tools-11.2.5.
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
14Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
15---
16 open-vm-tools/lib/hgfsServer/hgfsServerLinux.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
20index ba2e5624..889f730a 100644
21--- a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
22+++ b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
23@@ -5292,8 +5292,8 @@ HgfsWriteCheckIORange(off_t offset,         // IN:
24       goto exit;
25    }
26
27-   LOG(6, "%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n",
28-       __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max);
29+   //LOG(6, ("%s: File Size limits: 0x%jx 0x%jx\n",
30+   //    __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max));
31
32    /*
33     * Check the offset is within the file size range.
34--
352.30.2
36
37