comparison common/portpath.c @ 169:701b7036c5dc

Windows implementation of port_realpath: NULL if file does not exist.
author Sascha Wilde <wilde@intevation.de>
date Tue, 25 Mar 2014 13:20:23 +0100
parents f100861dad8f
children 3343ddf43f42
comparison
equal deleted inserted replaced
168:f100861dad8f 169:701b7036c5dc
29 port_realpath(char *path) 29 port_realpath(char *path)
30 { 30 {
31 #ifndef _WIN32 31 #ifndef _WIN32
32 return realpath(path, NULL); 32 return realpath(path, NULL);
33 #else 33 #else
34 return _fullpath(NULL, path, 0); 34 char *fp = _fullpath(NULL, path, 0);
35 if (port_fileexits(fp))
36 return fp;
37 else
38 return NULL;
35 #endif 39 #endif
36 } 40 }
37 41
38 bool 42 bool
39 port_fileexits(char *path) 43 port_fileexits(char *path)

http://wald.intevation.org/projects/trustbridge/