[Samba] smbget returns wrong exit code

Jason Schaefer js at jasonschaefer.com
Sun Mar 7 12:02:05 MST 2010

smbget -Rr smb://localhost/share

[all files and folders are copied successfully!]

echo $?

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 $?

This is breaking my error checking in backup scripts. I can't find any
place to file a bug report, I hope this is the right list


More information about the samba mailing list