diff options
author | Damien Miller <djm@mindrot.org> | 2001-03-19 02:56:14 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-03-19 02:56:14 +0100 |
commit | 753b1c05a5cae0b38289d9a7d080c1d931c9ce6c (patch) | |
tree | 80f61c8b9d3f6cb2b76c172b412b4bb94af5b1c2 /scp.c | |
parent | - (djm) Make scp work on systems without 64-bit ints (diff) | |
download | openssh-753b1c05a5cae0b38289d9a7d080c1d931c9ce6c.tar.xz openssh-753b1c05a5cae0b38289d9a7d080c1d931c9ce6c.zip |
Better fix for long long
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -545,7 +545,7 @@ syserr: run_err("%s: %s", name, strerror(errno)); goto next; } #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) -#ifdef HAVE_INT64_T +#ifdef HAVE_LONG_LONG_INT snprintf(buf, sizeof buf, "C%04o %lld %s\n", (u_int) (stb.st_mode & FILEMODEMASK), (long long) stb.st_size, last); |