commit | f8e9569507a641ece6713cb4be072d1d9cfd2dcd | [log] [tgz] |
---|---|---|
author | Mohamad Ayyash <[email protected]> | Wed Mar 12 22:06:56 2014 +0000 |
committer | Android (Google) Code Review <[email protected]> | Wed Mar 12 22:06:56 2014 +0000 |
tree | dfab0bedb341b8df3b61854bad9776106c8bb6d1 | |
parent | df7382e477ed0e3d27dc7cb1ca029aa52b476c7c [diff] | |
parent | 7929aa73d0c1fa75e8e0fcd4272361ad0ea9b0e6 [diff] |
Merge "vold: Add a new mountall command."
diff --git a/CommandListener.cpp b/CommandListener.cpp index 81747a4..9ef29f9 100644 --- a/CommandListener.cpp +++ b/CommandListener.cpp
@@ -252,6 +252,10 @@ DIR *dir; struct dirent *de; + if (argc < 3) { + cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing Argument: user <mountpoint>", false); + return 0; + } if (!(dir = opendir("/proc"))) { cli->sendMsg(ResponseCode::OperationFailed, "Failed to open /proc", true); return 0;