Skip to content

Commit

Permalink
Implement POSIX 2024's -mount
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Jul 8, 2024
1 parent 0ad7505 commit 33b85e1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1694,10 +1694,7 @@ static struct bfs_expr *parse_mount(struct bfs_parser *parser, int arg1, int arg
return NULL;
}

parse_expr_warning(parser, expr, "In the future, ${blu}%s${rs} will skip mount points entirely, unlike\n", expr->argv[0]);
bfs_warning(parser->ctx, "${blu}-xdev${rs}, due to http://austingroupbugs.net/view.php?id=1133.\n\n");

parser->ctx->flags |= BFTW_PRUNE_MOUNTS;
parser->ctx->flags |= BFTW_SKIP_MOUNTS;
parser->mount_arg = expr->argv;
return expr;
}
Expand Down
5 changes: 0 additions & 5 deletions tests/common/L_mount.out

This file was deleted.

2 changes: 2 additions & 0 deletions tests/posix/L_mount.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.
./foo
File renamed without changes.
1 change: 0 additions & 1 deletion tests/common/mount.out → tests/posix/mount.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.
./foo
./foo/bar
./mnt
File renamed without changes.

0 comments on commit 33b85e1

Please sign in to comment.