aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/explorer/commands/shell/FindCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/cyanogenmod/explorer/commands/shell/FindCommand.java')
-rw-r--r--src/com/cyanogenmod/explorer/commands/shell/FindCommand.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/com/cyanogenmod/explorer/commands/shell/FindCommand.java b/src/com/cyanogenmod/explorer/commands/shell/FindCommand.java
index e519171a..5168c166 100644
--- a/src/com/cyanogenmod/explorer/commands/shell/FindCommand.java
+++ b/src/com/cyanogenmod/explorer/commands/shell/FindCommand.java
@@ -38,7 +38,7 @@ import java.util.List;
/**
* A class for search files.
*
- * {@link "http://unixhelp.ed.ac.uk/CGI/man-cgi?ls"}
+ * {@link "http://unixhelp.ed.ac.uk/CGI/man-cgi?find"}
*/
public class FindCommand extends AsyncResultProgram implements FindExecutable {
@@ -60,8 +60,7 @@ public class FindCommand extends AsyncResultProgram implements FindExecutable {
private String mPartial;
/**
- * Constructor of <code>FindCommand</code>. This constructor uses a
- * <code>DIRECTORY</code> mode as listing mode.
+ * Constructor of <code>FindCommand</code>.
*
* @param directory The "absolute" directory where start the search
* @param query The terms to be searched
@@ -202,8 +201,10 @@ public class FindCommand extends AsyncResultProgram implements FindExecutable {
//Search in a subdirectory without permissions returns 1, but this
//not must be treated as an error
//Ignore exit code 143 (canceled)
- if (exitCode != 0 && exitCode != 1 && exitCode != 143) {
- throw new ExecutionException("exitcode != 0 && != 1 && != 143"); //$NON-NLS-1$
+ //Ignore exit code 137 (kill -9)
+ if (exitCode != 0 && exitCode != 1 && exitCode != 143 && exitCode != 137) {
+ throw new ExecutionException(
+ "exitcode != 0 && != 1 && != 143 && != 137"); //$NON-NLS-1$
}
}