Skip to content

Commit 33b85e1

Browse files
committed
Implement POSIX 2024's -mount
This reverts commit 4f80c17. Link: https://www.austingroupbugs.net/view.php?id=1133
1 parent 0ad7505 commit 33b85e1

File tree

6 files changed

+3
-10
lines changed

6 files changed

+3
-10
lines changed

src/parse.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,10 +1694,7 @@ static struct bfs_expr *parse_mount(struct bfs_parser *parser, int arg1, int arg
16941694
return NULL;
16951695
}
16961696

1697-
parse_expr_warning(parser, expr, "In the future, ${blu}%s${rs} will skip mount points entirely, unlike\n", expr->argv[0]);
1698-
bfs_warning(parser->ctx, "${blu}-xdev${rs}, due to http://austingroupbugs.net/view.php?id=1133.\n\n");
1699-
1700-
parser->ctx->flags |= BFTW_PRUNE_MOUNTS;
1697+
parser->ctx->flags |= BFTW_SKIP_MOUNTS;
17011698
parser->mount_arg = expr->argv;
17021699
return expr;
17031700
}

tests/common/L_mount.out

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/posix/L_mount.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.
2+
./foo
File renamed without changes.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.
22
./foo
33
./foo/bar
4-
./mnt
File renamed without changes.

0 commit comments

Comments
 (0)