Subject: Re: Samba's smbclient and NetBSD's find
To: None <netbsd-help@netbsd.org>
From: Claude Marinier <claude.marinier@dreo.dnd.ca>
List: netbsd-help
Date: 03/08/2001 11:51:10
Hi,

This seems to work but there may be ramifications that I have no foreseen.
Could someone confirm or deny this?

		if (recurse)
			slprintf(cmd,sizeof(pstring)-1,
				"find . -name \"%s\" -print > %s",p,tmpname);
		else
			slprintf(cmd,sizeof(pstring)-1,
				"ls -1 %s > %s",p,tmpname);
//			slprintf(cmd,sizeof(pstring)-1,
//				"find . -maxdepth 1 -name \"%s\" -print > %s",p,tmpname);

On Thu, 1 Mar 2001, Claude Marinier wrote:
> Samba's smbclient uses the "-maxdepth=1" option for the find command
> used to handle mput and mget. Our version of find does not have this
> option. I did not find the equivalent in the man page (I may have
> missed it).
>
> I can work around this by asking smbclient to recurse. I would prefer a
> real solution.
>
> Can someone supply equivalent find syntax? I could then fix smbclient.

-- 
Claude Marinier, Information Technology Group    claude.marinier@dreo.dnd.ca
Defence Research Establishment Ottawa (DREO)    (613) 998-4901  FAX 998-2675
3701 Carling Avenue, Ottawa, Ontario  K1A 0Z4         http://www.dreo.dnd.ca