1From b294005f3748c6caee002fd7588964f7bf9b1d09 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] 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
10Upstream-Status: Pending
11
12Refit patch for open-vm-tools-11.2.5.
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
16Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
17---
18 open-vm-tools/lib/hgfsServer/hgfsServerLinux.c | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21diff --git a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
22index 6ed49e2b7..0cc7c4094 100644
23--- a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
24+++ b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
25@@ -5294,8 +5294,8 @@ HgfsWriteCheckIORange(off_t offset,         // IN:
26       goto exit;
27    }
28
29-   LOG(6, "%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n",
30-       __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max);
31+   //LOG(6, ("%s: File Size limits: 0x%jx 0x%jx\n",
32+   //    __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max));
33
34    /*
35     * Check the offset is within the file size range.
36--
372.25.1
38
39