9
0
Fork 0

automount: remove existing automountpoint

Before creating a new mountpoint on an already existing mountpoint
we have to remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-04-15 00:30:46 +02:00
parent eeb3440419
commit 09334a95b4
1 changed files with 2 additions and 0 deletions

View File

@ -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) {
/*