Standardize paths when setting up a mapping between a data item

and a specific filesystem location (to make sure that it is retrieved
correctly by the TLS system).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38334 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Niels Grewe 2015-02-05 11:16:40 +00:00
parent fae0957a46
commit 32a1484a7e
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-02-05 Niels Grewe <niels.grewe@halbordnung.de>
* Source/GSTLS.m: Use path standardization when setting up TLS data
to be mapped to a specific filesystem location.
2015-01-13 Marcus Mueller <znek@mulle-kybernetik.com>
* Headers/Foundation/Foundation.h: added NSUUID.h

View file

@ -328,6 +328,7 @@ static NSMutableDictionary *fileMap = nil;
+ (void) setData: (NSData*)data forTLSFile: (NSString*)fileName
{
fileName = standardizedPath(fileName);
if (nil != data && NO == [data isKindOfClass: [NSData class]])
{
[NSException raise: NSInvalidArgumentException