[libdvdcss-devel] Fix check for empty home dir
djcj
djcj at gmx.de
Sun Mar 13 11:53:09 CET 2016
That did it, thanks.
Am 13.03.2016 um 11:27 schrieb Petri Hintukainen:
> libdvdcss | branch: master | Petri Hintukainen <phintuka at gmail.com> | Sun Mar 13 12:27:02 2016 +0200| [5fd2b38c343a94407863d9fa0820aa251c3d354c] | committer: Petri Hintukainen
>
> Fix check for empty home dir
>
>> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=5fd2b38c343a94407863d9fa0820aa251c3d354c
> ---
>
> src/libdvdcss.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libdvdcss.c b/src/libdvdcss.c
> index ac90030..6e5d6e1 100644
> --- a/src/libdvdcss.c
> +++ b/src/libdvdcss.c
> @@ -234,7 +234,7 @@ static int set_cache_directory( dvdcss_t dvdcss )
>
> /* Try looking in password file for home dir. */
> p_pwd = getpwuid(getuid());
> - if( p_pwd && p_pwd[ 0 ] )
> + if( p_pwd && p_pwd->pw_dir && p_pwd->pw_dir[ 0 ] )
> {
> psz_home = p_pwd->pw_dir;
> }
>
> _______________________________________________
> libdvdcss-devel mailing list
> libdvdcss-devel at videolan.org
> https://mailman.videolan.org/listinfo/libdvdcss-devel
More information about the libdvdcss-devel
mailing list