version 1.33, 2021/08/29 13:43:46 |
version 1.34, 2021/09/02 21:06:06 |
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
#include <sys/param.h> |
|
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include <assert.h> |
#include <assert.h> |
#include <errno.h> |
#include <errno.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <fts.h> |
#include <fts.h> |
|
#include <limits.h> |
#include <inttypes.h> |
#include <inttypes.h> |
#include <search.h> |
#include <search.h> |
#include <stdio.h> |
#include <stdio.h> |
|
|
*/ |
*/ |
static int |
static int |
flist_recv_name(struct sess *sess, int fd, struct flist *f, uint8_t flags, |
flist_recv_name(struct sess *sess, int fd, struct flist *f, uint8_t flags, |
char last[MAXPATHLEN]) |
char last[PATH_MAX]) |
{ |
{ |
uint8_t bval; |
uint8_t bval; |
size_t partial = 0; |
size_t partial = 0; |
|
|
|
|
/* Record our last path and construct our filename. */ |
/* Record our last path and construct our filename. */ |
|
|
strlcpy(last, f->path, MAXPATHLEN); |
strlcpy(last, f->path, PATH_MAX); |
f->wpath = f->path; |
f->wpath = f->path; |
return 1; |
return 1; |
} |
} |
|
|
const struct flist *fflast = NULL; |
const struct flist *fflast = NULL; |
size_t flsz = 0, flmax = 0, lsz, gidsz = 0, uidsz = 0; |
size_t flsz = 0, flmax = 0, lsz, gidsz = 0, uidsz = 0; |
uint8_t flag; |
uint8_t flag; |
char last[MAXPATHLEN]; |
char last[PATH_MAX]; |
int64_t lval; /* temporary values... */ |
int64_t lval; /* temporary values... */ |
int32_t ival; |
int32_t ival; |
uint32_t uival; |
uint32_t uival; |