Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm/adb: a more reliable way to delete broken symlinks
When fuzzing Android, the executor sometimes leaves broken symlinks that point to non-existent directories. The command that adb.go was using to delete the leftover symlinks: `find /data/syzkaller* -type l -exec unlink {} \;` actually choked on such files and led to syzkaller rebooting the device indefinitely. Parse the output of `find /data/syzkaller*` to obtain the list of broken symlinks and pass them to `unlink` one by one. Fixes #2831.
- Loading branch information