Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37864669
en ru br
ALT Linux repositórios
S:1.3.0-alt1
5.0: 1.2.9-alt1
4.1: 1.2.9-alt1
4.0: 1.2.9-alt1
3.0: 1.2.8-alt1

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


--- 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;
         }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009