|
| 1 | +--- fish-4.0.1/src/wutil/dir_iter.rs.old 2025-04-13 23:32:47.449072755 -0400 |
| 2 | ++++ fish-4.0.1/src/wutil/dir_iter.rs 2025-04-13 23:34:42.689522160 -0400 |
| 3 | +@@ -20,7 +20,7 @@ |
| 4 | + chr, // character device |
| 5 | + dir, // directory |
| 6 | + blk, // block device |
| 7 | +- reg, // regular file |
| 8 | ++ regr, // regular file |
| 9 | + lnk, // symlink |
| 10 | + sock, // socket |
| 11 | + whiteout, // whiteout (from BSD) |
| 12 | +@@ -140,7 +140,7 @@ |
| 13 | + DT_CHR => Some(DirEntryType::chr), |
| 14 | + DT_DIR => Some(DirEntryType::dir), |
| 15 | + DT_BLK => Some(DirEntryType::blk), |
| 16 | +- DT_REG => Some(DirEntryType::reg), |
| 17 | ++ DT_REG => Some(DirEntryType::regr), |
| 18 | + DT_LNK => Some(DirEntryType::lnk), |
| 19 | + DT_SOCK => Some(DirEntryType::sock), |
| 20 | + // todo!("whiteout") |
| 21 | +@@ -154,7 +154,7 @@ |
| 22 | + S_IFCHR => Some(DirEntryType::chr), |
| 23 | + S_IFDIR => Some(DirEntryType::dir), |
| 24 | + S_IFBLK => Some(DirEntryType::blk), |
| 25 | +- S_IFREG => Some(DirEntryType::reg), |
| 26 | ++ S_IFREG => Some(DirEntryType::regr), |
| 27 | + S_IFLNK => Some(DirEntryType::lnk), |
| 28 | + S_IFSOCK => Some(DirEntryType::sock), |
| 29 | + _ => { |
| 30 | +@@ -447,9 +447,9 @@ |
| 31 | + let expected = if entry.name == dirname { |
| 32 | + Some(DirEntryType::dir) |
| 33 | + } else if entry.name == regname { |
| 34 | +- Some(DirEntryType::reg) |
| 35 | ++ Some(DirEntryType::regr) |
| 36 | + } else if entry.name == reglinkname { |
| 37 | +- Some(DirEntryType::reg) |
| 38 | ++ Some(DirEntryType::regr) |
| 39 | + } else if entry.name == dirlinkname { |
| 40 | + Some(DirEntryType::dir) |
| 41 | + } else if entry.name == badlinkname { |
| 42 | +--- fish-4.0.1/src/wildcard.rs.old 2025-04-13 23:39:07.237912731 -0400 |
| 43 | ++++ fish-4.0.1/src/wildcard.rs 2025-04-13 23:39:26.301942052 -0400 |
| 44 | +@@ -379,7 +379,7 @@ |
| 45 | + // regular file *excludes* broken links - we have no use for them as commands. |
| 46 | + let is_regular_file = entry |
| 47 | + .check_type() |
| 48 | +- .map(|x| x == DirEntryType::reg) |
| 49 | ++ .map(|x| x == DirEntryType::regr) |
| 50 | + .unwrap_or(false); |
| 51 | + if executables_only && (!is_regular_file || waccess(filepath, X_OK) != 0) { |
| 52 | + return false; |
0 commit comments