Dash:
[t2.git] / package / filesystem / nfs-utils / x32-hotfix.patch
blob98dab3c7904049ddc14c337258e7f551618f98ef
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../nfs-utils/x32-hotfix.patch
5 # Copyright (C) 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- nfs-utils-2.4.3/support/nfs/cacheio.c.vanilla 2020-05-24 17:54:18.729945613 +0200
18 +++ nfs-utils-2.4.3/support/nfs/cacheio.c 2020-05-24 17:54:37.465945622 +0200
19 @@ -238,7 +238,7 @@
20 stb.st_mtime > now)
21 stb.st_mtime = time(0);
23 - sprintf(stime, "%ld\n", stb.st_mtime);
24 + sprintf(stime, "%ld\n", (long)stb.st_mtime);
25 for (c=0; cachelist[c]; c++) {
26 int fd;
27 sprintf(path, "/proc/net/rpc/%s/flush", cachelist[c]);