Skip to content

Commit 96d817b

Browse files
committed
Use the glusterfs:/// path in permission denied error message instead of filesystem path.
1 parent dcee0a3 commit 96d817b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/hadoop/fs/glusterfs/GlusterVolume.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public FileStatus[] listStatus(Path f) throws IOException {
291291
}
292292

293293
if(localf.isDirectory() && !localf.canRead()){
294-
throw new IOException("Access denied : " + localf.getPath());
294+
throw new IOException("Access denied : " + f.toString());
295295
}
296296

297297
File[] names = localf.listFiles();

0 commit comments

Comments
 (0)