Group :: Sistema/Bibliotecas
RPM: libdvdcss
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: libdvdcss-1.2.10-alt-tmpdir.patch
Download
Download
--- libdvdcss-1.2.10/src/libdvdcss.c.tmpdir 2008-08-29 22:41:51 +0400
+++ libdvdcss-1.2.10/src/libdvdcss.c 2008-12-21 13:07:21 +0300
@@ -88,7 +88,7 @@
* cache. The DVDCSS_CACHE directory is created if it does not exist,
* and a subdirectory is created named after the DVD's title or
* manufacturing date. If DVDCSS_CACHE is not set or is empty, \e libdvdcss
- * will use the default value which is "${HOME}/.dvdcss/" under Unix and
+ * will use the default value which is "${TMPDIR}/dvdcss/" under Unix and
* "C:\Documents and Settings\$USER\Application Data\dvdcss\" under Win32.
* The special value "off" disables caching.
*/
@@ -283,7 +283,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open (
}
#else
char *psz_home = NULL;
-# ifdef HAVE_PWD_H
+# if 0
struct passwd *p_pwd;
/* Try looking in password file for home dir. */
@@ -296,7 +296,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open (
if( psz_home == NULL )
{
- psz_home = getenv( "HOME" );
+ psz_home = getenv( "TMPDIR" );
}
if( psz_home == NULL )
{
@@ -306,7 +306,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open (
/* Cache our keys in ${HOME}/.dvdcss/ */
if( psz_home )
{
- snprintf( psz_buffer, PATH_MAX, "%s/.dvdcss", psz_home );
+ snprintf( psz_buffer, PATH_MAX, "%s/dvdcss", psz_home );
psz_buffer[PATH_MAX-1] = '\0';
psz_cache = psz_buffer;
}