The Samba-Bugzilla – Attachment 2973 Details for
Bug 4393
smbclient does not store files with zero filesize in tar-archives
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
clitar.c:do_atar() - include empty files
samba-3.0.27-tar-empty.patch (text/plain), 1.01 KB, created by
Tomasz Ostrowski (dead mail address)
on 2007-11-16 04:19:57 UTC
(
hide
)
Description:
clitar.c:do_atar() - include empty files
Filename:
MIME Type:
Creator:
Tomasz Ostrowski (dead mail address)
Created:
2007-11-16 04:19:57 UTC
Size:
1.01 KB
patch
obsolete
>diff -urNP samba-3.0.27.orig/source/client/clitar.c samba-3.0.27/source/client/clitar.c >--- samba-3.0.27.orig/source/client/clitar.c 2007-11-15 04:15:03.000000000 +0100 >+++ samba-3.0.27/source/client/clitar.c 2007-11-16 10:32:54.000000000 +0100 >@@ -609,7 +609,6 @@ > SMB_BIG_UINT nread=0; > char ftype; > file_info2 finfo; >- BOOL close_done = False; > BOOL shallitime=True; > char data[65520]; > int read_size = 65520; >@@ -695,7 +694,7 @@ > DEBUG(3,("getting file %s of size %.0f bytes as a tar file %s", > finfo.name, (double)finfo.size, lname)); > >- while (nread < finfo.size && !close_done) { >+ do { > > DEBUG(3,("nread=%.0f\n",(double)nread)); > >@@ -734,13 +733,13 @@ > break; > } > >- if (datalen == 0) { >+ if ( (datalen == 0) && (finfo.size != 0) ) { > DEBUG(0,("Error reading file %s. Got 0 bytes\n", rname)); > break; > } > > datalen=0; >- } >+ } while ( nread < finfo.size ); > > if (wrote_tar_header) { > /* pad tar file with zero's if we couldn't get entire file */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4393
: 2973