Ensure we can't pass -1 to smb_fn_name(). Fixes bug #4612.