[libdvdcss-devel] Please implement the XDG basedir spec
Rémi Denis-Courmont
remi at remlab.net
Thu Aug 28 22:53:53 CEST 2014
Le mercredi 27 août 2014, 11:30:13 Apo Poro a écrit :
> How about something like this patch? It migrates ~/.dvdcss if it exists to
> $XDG_DATA_HOME/dvdcss and uses the new location going forward.
The stat() tests are prone to ToCToU issues.
I would just probe both the old and new directories for reading, and stick to
the new one for writing.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the libdvdcss-devel
mailing list