The Samba-Bugzilla – Attachment 117 Details for
Bug 308
when tar-ing with smbclient i get errors with long names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch against 3.0.0rc2
patch0.diff (text/plain), 1.18 KB, created by
Craig Barratt
on 2003-09-02 08:51:59 UTC
(
hide
)
Description:
proposed patch against 3.0.0rc2
Filename:
MIME Type:
Creator:
Craig Barratt
Created:
2003-09-02 08:51:59 UTC
Size:
1.18 KB
patch
obsolete
>diff -bur samba-3.0.0rc2.orig/source/client/clitar.c samba-3.0.0rc2/source/client/clitar.c >--- samba-3.0.0rc2.orig/source/client/clitar.c Thu Aug 28 14:42:42 2003 >+++ samba-3.0.0rc2/source/client/clitar.c Sun Aug 31 20:19:14 2003 >@@ -185,18 +185,20 @@ > i = strlen(b)+1; > DEBUG(5, ("File name in tar file: %s, size=%d, \n", b, (int)strlen(b))); > dotarbuf(f, b, TBLOCK*(((i-1)/TBLOCK)+1)); >+ /* copy the truncated, fixed, name into hb.dbuf.name */ >+ strncpy(hb.dbuf.name, b, NAMSIZ); > SAFE_FREE(b); >+ } else { >+ fixtarname(hb.dbuf.name, aname, l); > } >- >- /* use l + 1 to do the null too */ >- fixtarname(hb.dbuf.name, aname, (l >= NAMSIZ) ? NAMSIZ : l + 1); >+ /* strncpy above doesn't terminate the string */ >+ hb.dbuf.name[NAMSIZ-1]='\0'; > > if (lowercase) > strlower_m(hb.dbuf.name); > > /* write out a "standard" tar format header */ > >- hb.dbuf.name[NAMSIZ-1]='\0'; > safe_strcpy(hb.dbuf.mode, amode, sizeof(hb.dbuf.mode)-1); > oct_it((SMB_BIG_UINT)0, 8, hb.dbuf.uid); > oct_it((SMB_BIG_UINT)0, 8, hb.dbuf.gid);
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 308
:
117
|
120