diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-04 22:26:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-04 22:26:41 (GMT) |
commit | 3a32cec96923cf057aad00274b4a8ab7ad82a82f (patch) | |
tree | 304527c04dbad8b51ce2bccda1a434f424bf1a9a /Utilities/cmtar/util.c | |
parent | de8ffcaef492e23af57ed5489dd8a21fdd7ad5d8 (diff) | |
download | CMake-3a32cec96923cf057aad00274b4a8ab7ad82a82f.zip CMake-3a32cec96923cf057aad00274b4a8ab7ad82a82f.tar.gz CMake-3a32cec96923cf057aad00274b4a8ab7ad82a82f.tar.bz2 |
ENH: merge in changes for beos support
Diffstat (limited to 'Utilities/cmtar/util.c')
-rw-r--r-- | Utilities/cmtar/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/cmtar/util.c b/Utilities/cmtar/util.c index 94cf544..550fb93 100644 --- a/Utilities/cmtar/util.c +++ b/Utilities/cmtar/util.c @@ -100,6 +100,13 @@ mkdirhier(char *path) if (*dirp == '\0') continue; + /* + * Don't try to build current or parent dir. It doesn't make sense anyhow, + * but it also returns EINVAL instead of EEXIST on BeOS! + */ + if ((strcmp(dirp, ".") == 0) || (strcmp(dirp, "..") == 0)) + continue; + if (dst[0] != '\0') strcat(dst, "/"); strcat(dst, dirp); |