mirror of
https://github.com/postgres/postgres.git
synced 2026-02-23 09:52:14 -05:00
Fix unportable coding in tarCreateHeader().
uid_t and gid_t might be wider than int on some platforms. Per buildfarm member brolga.
This commit is contained in:
parent
d5a43a238e
commit
6be49f22f4
1 changed files with 2 additions and 2 deletions
|
|
@ -81,10 +81,10 @@ tarCreateHeader(char *h, const char *filename, const char *linktarget,
|
|||
sprintf(&h[100], "%07o ", (int) mode);
|
||||
|
||||
/* User ID 8 */
|
||||
sprintf(&h[108], "%07o ", uid);
|
||||
sprintf(&h[108], "%07o ", (int) uid);
|
||||
|
||||
/* Group 8 */
|
||||
sprintf(&h[116], "%07o ", gid);
|
||||
sprintf(&h[116], "%07o ", (int) gid);
|
||||
|
||||
/* File size 12 - 11 digits, 1 space; use print_val for 64 bit support */
|
||||
if (linktarget != NULL || S_ISDIR(mode))
|
||||
|
|
|
|||
Loading…
Reference in a new issue