am 15c3e01e: am 3c0d02aa: Merge "Convert all selinux_android_restorecon and _setfilecon calls to new API."
* commit '15c3e01e05359fb11ce5e63934d7c3d54d0d6e93':
diff --git a/CommandListener.cpp b/CommandListener.cpp
index ea18c1d..c8d6848 100644
--- a/CommandListener.cpp
+++ b/CommandListener.cpp
@@ -242,6 +242,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;