Skip to content

Commit 0aec384

Browse files
dhowellsbrauner
authored andcommitted
afs: Revert "afs: Hide silly-rename files from userspace"
This reverts commit 57e9d49. This undoes the hiding of .__afsXXXX silly-rename files. The problem with hiding them is that rm can't then manually delete them. This also reverts commit 5f7a076 ("afs: Fix endless loop in directory parsing") as that's a bugfix for the above. Fixes: 57e9d49 ("afs: Hide silly-rename files from userspace") Reported-by: Markus Suvanto <markus.suvanto@gmail.com> Link: https://lists.infradead.org/pipermail/linux-afs/2024-February/008102.html Signed-off-by: David Howells <dhowells@redhat.com> Link: https://lore.kernel.org/r/3085695.1710328121@warthog.procyon.org.uk Reviewed-by: Jeffrey E Altman <jaltman@auristor.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 480e035 commit 0aec384

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

fs/afs/dir.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -474,16 +474,6 @@ static int afs_dir_iterate_block(struct afs_vnode *dvnode,
474474
continue;
475475
}
476476

477-
/* Don't expose silly rename entries to userspace. */
478-
if (nlen > 6 &&
479-
dire->u.name[0] == '.' &&
480-
ctx->actor != afs_lookup_filldir &&
481-
ctx->actor != afs_lookup_one_filldir &&
482-
memcmp(dire->u.name, ".__afs", 6) == 0) {
483-
ctx->pos = blkoff + next * sizeof(union afs_xdr_dirent);
484-
continue;
485-
}
486-
487477
/* found the next entry */
488478
if (!dir_emit(ctx, dire->u.name, nlen,
489479
ntohl(dire->u.vnode),

0 commit comments

Comments
 (0)