File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1191,10 +1191,10 @@ public Path getTrashRoot(Path path) {
11911191 }
11921192
11931193 Path targetFsUserHome = res .targetFileSystem .getHomeDirectory ();
1194- if (targetFSTrashRootPath .startsWith (mountTargetPath ) && !(
1195- mountTargetPath .equals (ROOT_PATH .toString ())
1196- && !res .resolvedPath .equals (ROOT_PATH .toString ()) && (
1197- targetFsUserHome != null && targetFSTrashRootPath .startsWith (
1194+ if (targetFSTrashRootPath .startsWith (mountTargetPath ) &&
1195+ !( mountTargetPath .equals (ROOT_PATH .toString ()) &&
1196+ !res .resolvedPath .equals (ROOT_PATH .toString ()) &&
1197+ ( targetFsUserHome != null && targetFSTrashRootPath .startsWith (
11981198 targetFsUserHome .toUri ().getPath ())))) {
11991199 String relativeTrashRoot =
12001200 targetFSTrashRootPath .substring (mountTargetPath .length ());
You can’t perform that action at this time.
0 commit comments