Re: [Samba] smbget returns wrong exit code

2010-03-10 Thread Jeremy Allison
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

Re: [Samba] smbget returns wrong exit code

2010-03-08 Thread Jason Schaefer
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

[Samba] smbget returns wrong exit code

2010-03-07 Thread Jason Schaefer
smbget -Rr smb://localhost/share [all files and folders are copied successfully!] echo $? 1 On the other hand, when smbget is introduced with an error smbget -Rr smb://localhost/shar Can't open directory smb://localhost/shar: No such file or directory echo $? 0 This is breaking my error

Re: [Samba] smbget returns wrong exit code

2010-03-07 Thread Joerg Thuemmler
Jason Schaefer schrieb: smbget -Rr smb://localhost/share [all files and folders are copied successfully!] echo $? 1 On the other hand, when smbget is introduced with an error smbget -Rr smb://localhost/shar Can't open directory smb://localhost/shar: No such file or directory echo