From cba14b853b9e7b51cdab46cd9733b1e05d411b18 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 27 Jan 2001 20:11:18 +0000 Subject: [PATCH] add RCSID S_ISTXT -> S_ISVTX printf sizes of files with %lu instead of %q (which is not portable) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9528 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/rcp/rcp.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/appl/rcp/rcp.c b/appl/rcp/rcp.c index 4b097cab7..1df5f9d7f 100644 --- a/appl/rcp/rcp.c +++ b/appl/rcp/rcp.c @@ -31,6 +31,11 @@ * SUCH DAMAGE. */ +#ifdef HAVE_CONFIG_H +#include +RCSID("$Id$"); +#endif + #include #include #include @@ -352,9 +357,9 @@ syserr: run_err("%s: %s", name, strerror(errno)); if (response() < 0) goto next; } -#define MODEMASK (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO) - (void)snprintf(buf, sizeof(buf), "C%04o %qd %s\n", - stb.st_mode & MODEMASK, stb.st_size, last); +#define MODEMASK (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) + (void)snprintf(buf, sizeof(buf), "C%04o %lu %s\n", + stb.st_mode & MODEMASK, (unsigned long)stb.st_size, last); (void)write(remout, buf, strlen(buf)); if (response() < 0) goto next;