mount: drop duplicated unlink() call from the mount_dev_del()
[project/mountd.git] / mount.c
diff --git a/mount.c b/mount.c
index f196791..aa346ff 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -591,8 +591,6 @@ static void mount_dev_del(struct mount *mount)
                log_printf("device %s has disappeared ... unmounting %s\n", mount->dev, tmp);
                system_printf("/bin/umount %s", tmp);
                rmdir(tmp);
-               snprintf(tmp, 64, "%s%s", uci_path, mount->name);
-               unlink(tmp);
                mount_dump_uci_state();
        }
 }