X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=mount.c;h=a88ca6d469ac79661f6927e10fc73e0a0155f771;hb=e31565a287c6b44763d5b11bdc88c2d79c5e508e;hp=803acc1fa8c7b644da82fb4d1bdf3573d59cf9f1;hpb=0f4f20ba5ce2dc24914c231eb2984d40b30d2adb;p=project%2Fmountd.git diff --git a/mount.c b/mount.c index 803acc1..a88ca6d 100644 --- a/mount.c +++ b/mount.c @@ -292,8 +292,10 @@ int mount_new(char *path, char *dev) pid = waitpid(pid, &ret, 0); ret = WEXITSTATUS(ret); log_printf("----------> mount ret = %d\n", ret); - if(ret && (ret != 0xff)) + if (ret && ret != 0xff) { + rmdir(tmp); return -1; + } if(mount_wait_for_disc(mount->dev) == 0) { mount->mounted = 1;