diff --git a/fs/fs.c b/fs/fs.c index 64997cc8d..04dace49d 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -259,6 +259,8 @@ int automount_add(const char *path, const char *cmd) am->path = normalise_path(path); am->cmd = xstrdup(cmd); + automount_remove(am->path); + ret = stat(path, &s); if (!ret) { /*