- }
- p_smb->debug = 1;
- p_smb->callbacks.auth_fn = smb_auth;
-
- if( !smbc_init_context( p_smb ) )
- {
- msg_Err( p_access, "cannot initialize context (%m)" );
- smbc_free_context( p_smb, 1 );
- free( psz_uri );
- return VLC_EGENERIC;
- }
-
- if( !(p_file = (p_smb->open)( p_smb, psz_uri, O_RDONLY, 0 )) )
- {
- msg_Err( p_access, "open failed for '%s' (%m)",
- p_access->psz_path );
- smbc_free_context( p_smb, 1 );
- free( psz_uri );
- return VLC_EGENERIC;
- }
-
- /* Init p_access */
- STANDARD_READ_ACCESS_INIT;
-
- i_ret = p_smb->fstat( p_smb, p_file, &filestat );
- if( i_ret ) msg_Err( p_access, "stat failed (%m)" );
- else p_access->info.i_size = filestat.st_size;
-#else