Hi,
There is a problem with smbclient mput ( maybe more, I haven't checked )
with
the SAMBA CVS I checked out on March 14, 2000.
The problem will manifest itself on systems that don't support -maxdepth
on the find command. (AIX being one of them ).
I compared source/client.c between 2.0.6 and the cvs.
The problem is in:
static void cmd_mput(void)
When recurse=false
Version 2.0.6
-------------
slprintf(cmd,sizeof(pstring)-1,
"/bin/ls %s > %s",p,tmpname);
system(cmd);
CVS as of March 14/2000
-----------------------
slprintf(cmd,sizeof(pstring)-1,
"find . -maxdepth 1 -name \"%s\" -print >
%s",p,tmpname);
AIX 4.2 does not support the -maxdepth paramater to find, and thus the
find command returns nothing. Bummer...
Is there any reason why ls & find are being used, rather than a simple
opendir/readdir/closedir type of thing? Portability?
Whatever... I don't know what a proper solution, so I will just put this
to the list & hopefully the powers that be will see it.
Thanks for the fantastic work!! ,
--
Steve Williams, Calgary, Alberta, Canada
Genie Computer Systems Inc.
steve@genie96.com
"A man doesn't begin to attain wisdom until he recognizes that he is
no longer indispensable."
- Admiral Richard E. Byrd ( 1888-1957 )