commit | f5c61980969a0b49bda37b5dc94ffe675ebd5a5a | [log] [tgz] |
---|---|---|
author | San Mehat <san@google.com> | Wed Feb 03 11:04:46 2010 -0800 |
committer | San Mehat <san@google.com> | Wed Feb 03 11:04:46 2010 -0800 |
tree | ab962d69410ec00231f7fbb202f7cdc4a65bc7ca | |
parent | 2b22552f9a3b077f9d0a3624ac6f9b8b332f8a7a [diff] [blame] |
vold: Silly rabbit, don't use unlink() when you mean't rmdir() Signed-off-by: San Mehat <san@google.com>
diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 40e3e1f..96a691b 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp
@@ -359,7 +359,9 @@ return -1; } - unlink(mountPoint); + if (rmdir(mountPoint)) { + LOGE("Failed to rmdir mountpoint (%s)", strerror(errno)); + } if (Devmapper::destroy(id) && errno != ENXIO) { LOGE("Failed to destroy devmapper instance (%s)", strerror(errno));