aboutsummaryrefslogtreecommitdiffstats
path: root/src/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mv.c')
-rw-r--r--src/mv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mv.c b/src/mv.c
index 29bf64f0b..79354fc27 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -20,11 +20,11 @@
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
-#include <assert.h>
#include <selinux/label.h>
#include "system.h"
#include "argmatch.h"
+#include "assure.h"
#include "backupfile.h"
#include "copy.h"
#include "cp-hash.h"
@@ -238,7 +238,7 @@ do_move (char const *source, char const *dest,
dir[1] = nullptr;
status = rm ((void *) dir, &rm_options);
- assert (VALID_STATUS (status));
+ affirm (VALID_STATUS (status));
if (status == RM_ERROR)
ok = false;
}