aboutsummaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copy.c b/src/copy.c
index de87446..d7b13b6 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -182,7 +182,7 @@ int copytree(const char *srcdir, const char *destdir, unsigned int op) {
#if defined (OMC_OS_WINDOWS)
is_dir = S_ISDIR(st.st_mode);
#else
- is_dir = DT_DIR == rec->d_type;
+ is_dir = DT_DIR == d->d_type;
#endif
if (is_dir) {
if (strncmp(src, dest, strlen(src)) == 0) {