1From 2904454f3408a3abe3f2b0681504a66ea5ce713c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 24 Mar 2021 17:36:26 -0400
4Subject: [PATCH] hgfsServerLinux: Consider 64bit time_t possibility
5
6Upstream-Status: Pending
7
8Refit for open-vm-tools-11.2.5.
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
12Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
13---
14 open-vm-tools/lib/hgfsServer/hgfsServerLinux.c | 14 --------------
15 1 file changed, 14 deletions(-)
16
17diff --git a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
18index 0cc7c4094..445a53881 100644
19--- a/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
20+++ b/open-vm-tools/lib/hgfsServer/hgfsServerLinux.c
21@@ -2559,20 +2559,6 @@ HgfsStatToFileAttr(struct stat *stats,       // IN: stat information
22    LOG(4, "%s: done, permissions %o%o%o%o, size %"FMT64"u\n", __FUNCTION__,
23        attr->specialPerms, attr->ownerPerms, attr->groupPerms,
24        attr->otherPerms, attr->size);
25-#ifdef __FreeBSD__
26-#   if !defined(VM_X86_64) && !defined(VM_ARM_64)
27-#      define FMTTIMET ""
28-#   else
29-#      define FMTTIMET "l"
30-#   endif
31-#else
32-#   define FMTTIMET "l"
33-#endif
34-   LOG(4, "access: %"FMTTIMET"d/%"FMT64"u \nwrite: %"FMTTIMET"d/%"FMT64"u \n"
35-       "attr: %"FMTTIMET"d/%"FMT64"u\n",
36-       stats->st_atime, attr->accessTime, stats->st_mtime, attr->writeTime,
37-       stats->st_ctime, attr->attrChangeTime);
38-#undef FMTTIMET
39
40    attr->userId = stats->st_uid;
41    attr->groupId = stats->st_gid;
42--
432.25.1
44
45