Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
rdist
rdist-6.1.5-lfs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rdist-6.1.5-lfs.patch of Package rdist
--- rdist-6.1.5/Makefile.local +++ rdist-6.1.5/Makefile.local @@ -35,7 +35,7 @@ # Add any local definitions you want pass to the compiler to DEFS_LOCAL # below. This includes those items found in "config/config.h". # -#DEFS_LOCAL = -DDIRECT_RCMD +DEFS_LOCAL = -O2 -g -pipe -Wall -D_POSIX_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 # # Add any local libraries that your system might need to LIBS_LOCAL below. --- rdist-6.1.5/include/defs.h +++ rdist-6.1.5/include/defs.h @@ -22,6 +22,8 @@ #include <stdlib.h> #endif /* _POSIX_SOURCE */ #include <stdio.h> +#include <string.h> +#include <mntent.h> #include <ctype.h> #include <errno.h> #include <pwd.h> --- rdist-6.1.5/src/client.c +++ rdist-6.1.5/src/client.c @@ -397,9 +397,9 @@ /* * Send file info */ - (void) sendcmd(C_RECVREG, "%o %04o %ld %ld %ld %s %s %s", + (void) sendcmd(C_RECVREG, "%o %04o %lld %ld %ld %s %s %s", opts, stb->st_mode & 07777, - (long) stb->st_size, + (off_t) stb->st_size, stb->st_mtime, stb->st_atime, user, group, rname); if (response() < 0) { @@ -407,8 +407,8 @@ return(-1); } - debugmsg(DM_MISC, "Send file '%s' %d bytes\n", - rname, (long) stb->st_size); + debugmsg(DM_MISC, "Send file '%s' %lld bytes\n", + rname, (off_t) stb->st_size); /* * Set remote time out alarm handler. @@ -659,9 +659,9 @@ /* * Gather and send basic link info */ - (void) sendcmd(C_RECVSYMLINK, "%o %04o %ld %ld %ld %s %s %s", + (void) sendcmd(C_RECVSYMLINK, "%o %04o %lld %ld %ld %s %s %s", opts, stb->st_mode & 07777, - (long) stb->st_size, + (off_t) stb->st_size, stb->st_mtime, stb->st_atime, user, group, rname); if (response() < 0) @@ -841,7 +841,7 @@ /* * Parse size */ - size = strtol(cp, &cp, 10); + size = strtoll(cp, &cp, 10); if (*cp++ != ' ') { error("update: size not delimited"); return(US_NOTHING); @@ -893,8 +893,8 @@ debugmsg(DM_MISC, "update(%s,) local mode %04o remote mode %04o\n", rname, lmode, rmode); - debugmsg(DM_MISC, "update(%s,) size %d mtime %d owner '%s' grp '%s'\n", - rname, (int) size, mtime, owner, group); + debugmsg(DM_MISC, "update(%s,) size %lld mtime %d owner '%s' grp '%s'\n", + rname, (off_t) size, mtime, owner, group); if (statp->st_mtime != mtime) { if (statp->st_mtime < mtime && IS_ON(opts, DO_YOUNGER)) { @@ -920,8 +920,8 @@ } if (statp->st_size != size) { - debugmsg(DM_MISC, "size does not match (%d != %d).\n", - (int) statp->st_size, size); + debugmsg(DM_MISC, "size does not match (%lld != %lld).\n", + statp->st_size, size); return(US_OUTDATE); } --- rdist-6.1.5/src/server.c +++ rdist-6.1.5/src/server.c @@ -645,8 +645,8 @@ case S_IFLNK: case S_IFDIR: case S_IFREG: - (void) sendcmd(QC_YES, "%ld %ld %o %s %s", - (long) stb.st_size, + (void) sendcmd(QC_YES, "%lld %ld %o %s %s", + (off_t) stb.st_size, stb.st_mtime, stb.st_mode & 07777, getusername(stb.st_uid, target, options), @@ -1388,7 +1388,7 @@ /* * Get file size */ - size = strtol(cp, &cp, 10); + size = strtoll(cp, &cp, 10); if (*cp++ != ' ') { error("recvit: size not delimited"); return; @@ -1441,7 +1441,7 @@ } debugmsg(DM_MISC, - "recvit: opts = %04o mode = %04o size = %d mtime = %d", + "recvit: opts = %04o mode = %04o size = %lld mtime = %d", opts, mode, size, mtime); debugmsg(DM_MISC, "recvit: owner = '%s' group = '%s' file = '%s' catname = %d isdir = %d",
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor