summaryrefslogtreecommitdiffstats
path: root/src/dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-07-03 07:34:44 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-07-03 07:34:44 +0200
commitdb0885a2287e101836d96b4753d23c0407fe37a5 (patch)
tree2878c97005a6a94f5b233dde568e70d65c011a46 /src/dir.c
parente976d6af99cfa1d5b94cc6d8c93f6b09bb66f783 (diff)
TestDisk: Convert the directory name when it can't be created (Cygwin version)
Diffstat (limited to 'src/dir.c')
-rw-r--r--src/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dir.c b/src/dir.c
index 7fc3244..ee5c04b 100644
--- a/src/dir.c
+++ b/src/dir.c
@@ -739,7 +739,8 @@ FILE *fopen_local(char **localfilename, const char *localroot, const char *filen
}
#elif defined(__CYGWIN__)
if(memcmp(&localfilename[1],":/cygdrive",11)!=0 &&
- mkdir(*localfilename, 0775)<0 && errno==EINVAL)
+ mkdir(*localfilename, 0775)<0 &&
+ (errno==EINVAL || errno==ENOENT))
{
unsigned int l;
l=filename_convert(dst_org, src_org, n);