aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mdevd/mdevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c
index 3040ba6..aecd5a7 100644
--- a/src/mdevd/mdevd.c
+++ b/src/mdevd/mdevd.c
@@ -640,7 +640,7 @@ static inline int run_scriptelem (struct uevent_s const *event, scriptelem const
break ;
}
}
- if (nodelen && ud->action == ACTION_ADD && ud->mmaj >= 0)
+ if (elem->movetype != MOVEINFO_NOCREATE && nodelen && ud->action == ACTION_ADD && ud->mmaj >= 0)
{
if (!makesubdirs(node)) return -1 ;
if (dryrun)