-/*
+/* -*- c-file-style: "linux" -*-
+
Weiss 1/1999
- Batch utilities
+ Batch utilities for rsync.
*/
{
int i;
int int_zero = 0;
- extern int block_size;
extern int csum_length;
fdb_open = 1;
int i;
for (i=0;i<index;i++) {
- rprintf(FINFO,"flist->flags=%x\n",fptr[i]->flags);
- rprintf(FINFO,"flist->modtime=%x\n",fptr[i]->modtime);
- rprintf(FINFO,"flist->length=%x\n",fptr[i]->length);
- rprintf(FINFO,"flist->mode=%x\n",fptr[i]->mode);
- rprintf(FINFO,"flist->basename=%s\n",fptr[i]->basename);
+ rprintf(FINFO, "flist->flags=%#x\n",fptr[i]->flags);
+ rprintf(FINFO, "flist->modtime=%#x\n",fptr[i]->modtime);
+ rprintf(FINFO, "flist->length=%.0f\n", (double) fptr[i]->length);
+ rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);
+ rprintf(FINFO, "flist->basename=%s\n",fptr[i]->basename);
if (fptr[i]->dirname)
- rprintf(FINFO,"flist->dirname=%s\n",fptr[i]->dirname);
+ rprintf(FINFO, "flist->dirname=%s\n",fptr[i]->dirname);
if (fptr[i]->basedir)
- rprintf(FINFO,"flist->basedir=%s\n",fptr[i]->basedir);
+ rprintf(FINFO, "flist->basedir=%s\n",fptr[i]->basedir);
}
}
if (am_root) {
if (setgid(gid)) {
- rsyserr(FERROR, errno, "setgid %d failed", gid);
+ rsyserr(FERROR, errno, "setgid %d failed", (int) gid);
io_printf(fd,"@ERROR: setgid failed\n");
return -1;
}
if (setuid(uid)) {
- rsyserr(FERROR, errno, "setuid %d failed", uid);
+ rsyserr(FERROR, errno, "setuid %d failed", (int) uid);
io_printf(fd,"@ERROR: setuid failed\n");
return -1;
}
for (i=0;i<flist->count;i++) {
rprintf(FINFO,"[%d] i=%d %s %s mode=0%o len=%.0f\n",
- getpid(), i,
+ (int) getpid(), i,
NS(flist->files[i]->dirname),
NS(flist->files[i]->basename),
- flist->files[i]->mode,
+ (int) flist->files[i]->mode,
(double)flist->files[i]->length);
}
}
Copyright (C) 1996-2001 by Andrew Tridgell <tridge@samba.org>
Copyright (C) Paul Mackerras 1996
+ Copyright (C) 2001 by Martin Pool <mbp@samba.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
}
if (pid != -1) {
if (verbose > 3)
- rprintf(FINFO,"client_run waiting on %d\n",pid);
+ rprintf(FINFO,"client_run waiting on %d\n", (int) pid);
io_flush();
wait_process(pid, &status);
}
if (pid != -1) {
if (verbose > 3)
- rprintf(FINFO,"client_run2 waiting on %d\n",pid);
+ rprintf(FINFO,"client_run2 waiting on %d\n", (int) pid);
io_flush();
wait_process(pid, &status);
}