Discussion:
[libdvdcss-devel] Check for empty strings
Petri Hintukainen
2016-03-11 10:08:29 UTC
Permalink
libdvdcss | branch: master | Petri Hintukainen <***@gmail.com> | Fri Mar 11 12:07:03 2016 +0200| [100ac1a3762915042ee65b1bf370399966f61be5] | committer: Petri Hintukainen

Check for empty strings
http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=100ac1a3762915042ee65b1bf370399966f61be5
---

src/libdvdcss.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 408ec2f..ac90030 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 )
+ if( p_pwd && p_pwd[ 0 ] )
{
psz_home = p_pwd->pw_dir;
}
@@ -248,7 +248,7 @@ static int set_cache_directory( dvdcss_t dvdcss )
}

/* Cache our keys in ${HOME}/.dvdcss/ */
- if( psz_home )
+ if( psz_home && psz_home[ 0 ] )
{
int home_pos = 0;
Naftuli Tzvi Kay
2016-03-13 21:53:10 UTC
Permalink
Can we get a version bump for these recent fixes involving the cach
edirectory? ie: 1.4.1.

Thanks,
- Naftuli Tzvi
Post by Petri Hintukainen
Mar 11 12:07:03 2016 +0200| [100ac1a3762915042ee65b1bf370399966f61be5] |
committer: Petri Hintukainen
Check for empty strings
http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=100ac1a3762915042ee65b1bf370399966f61be5
---
src/libdvdcss.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index 408ec2f..ac90030 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 )
+ if( p_pwd && p_pwd[ 0 ] )
{
psz_home = p_pwd->pw_dir;
}
@@ -248,7 +248,7 @@ static int set_cache_directory( dvdcss_t dvdcss )
}
/* Cache our keys in ${HOME}/.dvdcss/ */
- if( psz_home )
+ if( psz_home && psz_home[ 0 ] )
{
int home_pos = 0;
_______________________________________________
libdvdcss-devel mailing list
https://mailman.videolan.org/listinfo/libdvdcss-devel
Jean-Baptiste Kempf
2016-03-13 21:59:24 UTC
Permalink
Post by Naftuli Tzvi Kay
Can we get a version bump for these recent fixes involving the cach
edirectory? ie: 1.4.1.
As soon as more people confirm it, yes.

With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
Naftuli Tzvi Kay
2016-03-13 22:00:02 UTC
Permalink
It's been accepted to master, yeah?
Post by Jean-Baptiste Kempf
Post by Naftuli Tzvi Kay
Can we get a version bump for these recent fixes involving the cach
edirectory? ie: 1.4.1.
As soon as more people confirm it, yes.
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
_______________________________________________
libdvdcss-devel mailing list
https://mailman.videolan.org/listinfo/libdvdcss-devel
Loading...