diff options
| author | Jorge Ruesga <jorge@ruesga.com> | 2012-11-04 18:03:31 +0100 |
|---|---|---|
| committer | Jorge Ruesga <jorge@ruesga.com> | 2012-11-04 18:03:31 +0100 |
| commit | 2dfee9490442d7dc033530bdea30c16d624afa31 (patch) | |
| tree | 66091c96a5f55da4893f9175f6ccc8079eeac1d3 | |
| parent | b5ce06039365232bed538452f5dd98f97f2d7977 (diff) | |
| download | android_packages_apps_CMFileManager-2dfee9490442d7dc033530bdea30c16d624afa31.tar.gz android_packages_apps_CMFileManager-2dfee9490442d7dc033530bdea30c16d624afa31.tar.bz2 android_packages_apps_CMFileManager-2dfee9490442d7dc033530bdea30c16d624afa31.zip | |
CMFileManager: Fix list of folders with broken symlinks
Issue https://github.com/jruesga/CMFileManager/issues/28.
Change-Id: I7dee65bb93247d39028e61fad98087320629a0a0
| -rw-r--r-- | src/com/cyanogenmod/filemanager/commands/shell/ListCommand.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/filemanager/commands/shell/ListCommand.java b/src/com/cyanogenmod/filemanager/commands/shell/ListCommand.java index abc07418..bb05da82 100644 --- a/src/com/cyanogenmod/filemanager/commands/shell/ListCommand.java +++ b/src/com/cyanogenmod/filemanager/commands/shell/ListCommand.java @@ -368,8 +368,9 @@ public class ListCommand extends SyncResultProgram implements ListExecutable { @Override public void checkExitCode(int exitCode) throws InsufficientPermissionsException, CommandNotFoundException, ExecutionException { - if (exitCode != 0 && exitCode != 1) { - throw new ExecutionException("exitcode != 0 && != 1"); //$NON-NLS-1$ + // 123: stat failed ... Function not implemented (for broken symlinks) + if (exitCode != 0 && exitCode != 1 && exitCode != 123) { + throw new ExecutionException("exitcode != 0 && != 1 && != 123"); //$NON-NLS-1$ } } } |
