Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dfee949 authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

CMFileManager: Fix list of folders with broken symlinks

Issue https://github.com/jruesga/CMFileManager/issues/28.

Change-Id: I7dee65bb93247d39028e61fad98087320629a0a0
parent b5ce0603
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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$
        }
    }
}