repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RPC: get rid of references to SCVXPRT
[deb_libnfs.git]
/
examples
/
nfs-cp.c
diff --git
a/examples/nfs-cp.c
b/examples/nfs-cp.c
index 62724dfefe4ed00c3dd1bcfb79b7726ef8e57d89..fe9911de50b6e79c520086ab0413b23db05fd975 100644
(file)
--- a/
examples/nfs-cp.c
+++ b/
examples/nfs-cp.c
@@
-132,6
+132,7
@@
open_file(const char *url, int flags)
file_context->fd = -1;
file_context->nfs = NULL;
file_context->nfsfh = NULL;
file_context->fd = -1;
file_context->nfs = NULL;
file_context->nfsfh = NULL;
+ file_context->url = NULL;
if (strncmp(url, "nfs://", 6)) {
file_context->is_nfs = 0;
if (strncmp(url, "nfs://", 6)) {
file_context->is_nfs = 0;
@@
-260,7
+261,7
@@
int main(int argc, char *argv[])
off += count;
}
off += count;
}
- printf("copied %d bytes\n", (int)
count
);
+ printf("copied %d bytes\n", (int)
off
);
free_file_context(src);
free_file_context(dst);
free_file_context(src);
free_file_context(dst);