ref: fbc894055ce61ae2f96fb9ed4bdfb8a749d4badf
parent: bf60ff1858beb4442f19e8748a6a7dd725b8f1ce
author: Christopher Richards <richards+netbsd@CS.Princeton.EDU>
date: Sat Mar 22 11:37:37 EST 2003
* src/libdvdcss.c: fix for NetBSD's mkdir that doesn't like trailing "/" on its argument.
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -5,7 +5,7 @@
* H�kan Hjort <d95hjort@dtek.chalmers.se>
*
* Copyright (C) 1998-2002 VideoLAN
- * $Id: libdvdcss.c,v 1.29 2003/01/29 22:59:35 massiot Exp $
+ * $Id: libdvdcss.c,v 1.30 2003/03/22 16:37:37 gbazin Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -398,7 +398,7 @@
goto nocache;
}
- i += sprintf( dvdcss->psz_cachefile + i, "/%s/", psz_data );
+ i += sprintf( dvdcss->psz_cachefile + i, "/%s", psz_data );
#if !defined( WIN32 ) || defined( SYS_CYGWIN )
i_ret = mkdir( dvdcss->psz_cachefile, 0755 );
#else
@@ -410,6 +410,7 @@
dvdcss->psz_cachefile[0] = '\0';
goto nocache;
}
+ i += sprintf( dvdcss->psz_cachefile + i, "/");
/* Pointer to the filename we will use. */
dvdcss->psz_block = dvdcss->psz_cachefile + i;