[Samba] smbget returns wrong exit code

Jeremy Allison jra at samba.org
Wed Mar 10 16:11:48 MST 2010


On Mon, Mar 08, 2010 at 10:55:37AM -0700, Jason Schaefer wrote:
> > found the same behavior using smbget with errornous parameters. Maybe it
> > should do so: return not the error code but the count of files it got?
> > Although that would be really strange...
> >
> > cu jth
> 
> No, its just that the exit status is reversed from the standard.
> Successful completion should return 0 and unsuccessful should return
> 1. I see it as a bug. Exit status only has values of 0-255. So file
> count is out :-)

I think I've fixed this one recently (someone definitely logged
a bug on this with a patch :-).

Jeremy


More information about the samba mailing list