Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Nov 30, 2023
1 parent 3f66734 commit 42d813d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 7 additions & 11 deletions patches/src.freebsd.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2012,20 +2012,16 @@
switch (ch) {
case 'H':
Hflag = 1;
@@ -144,11 +144,7 @@
@@ -144,7 +144,7 @@
if (Lflag) {
fts_options = FTS_LOGICAL;
} else {
- fts_options = FTS_PHYSICAL;
-
- if (Hflag) {
- fts_options |= FTS_COMFOLLOW;
- }
+ fts_options = FTS_PHYSICAL | FTS_COMFOLLOW;
}
} else if (hflag) {
fts_options = FTS_PHYSICAL;
@@ -200,16 +196,24 @@

if (Hflag) {
fts_options |= FTS_COMFOLLOW;
@@ -200,16 +200,24 @@
if (may_have_nfs4acl(p, hflag) == 0 &&
(newmode & ALLPERMS) == (p->fts_statp->st_mode & ALLPERMS))
continue;
Expand All @@ -2051,15 +2047,15 @@
strmode(p->fts_statp->st_mode, m1);
strmode((p->fts_statp->st_mode &
S_IFMT) | newmode, m2);
@@ -238,6 +242,7 @@
@@ -238,6 +246,7 @@
static int
may_have_nfs4acl(const FTSENT *ent, int hflag)
{
+#ifndef __linux__
int ret;
static dev_t previous_dev = NODEV;
static int supports_acls = -1;
@@ -257,4 +262,10 @@
@@ -257,4 +266,10 @@
}

return (supports_acls);
Expand Down
4 changes: 4 additions & 0 deletions src.freebsd/coreutils/chmod/chmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ done: argv += optind;
fts_options = FTS_LOGICAL;
} else {
fts_options = FTS_PHYSICAL | FTS_COMFOLLOW;

if (Hflag) {
fts_options |= FTS_COMFOLLOW;
}
}
} else if (hflag) {
fts_options = FTS_PHYSICAL;
Expand Down

0 comments on commit 42d813d

Please sign in to comment.