|
@@ -1,6 +1,6 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
- * Copyright (C) 2010-2017,2019 Université de Bordeaux
|
|
|
+ * Copyright (C) 2010-2017,2019-2020 Université de Bordeaux
|
|
|
* Copyright (C) 2012,2016,2017 Inria
|
|
|
* Copyright (C) 2010-2017, 2019 CNRS
|
|
|
*
|
|
@@ -81,6 +81,9 @@ int _starpu_mkpath(const char *s, mode_t mode)
|
|
|
char *q, *r = NULL, *path = NULL, *up = NULL;
|
|
|
int rv = -1;
|
|
|
|
|
|
+ while (s[0] == '/' && s[1] == '/')
|
|
|
+ s++;
|
|
|
+
|
|
|
if (strcmp(s, ".") == 0 || strcmp(s, "/") == 0
|
|
|
#if defined(_WIN32)
|
|
|
/* C:/ or C:\ */
|