<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/diff/diffdir.c, branch releng/14.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-02-11T06:14:30Z</updated>
<entry>
<title>diff: Don't compare a file or directory to itself</title>
<updated>2026-02-11T06:14:30Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-02-05T14:39:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b4139147bbb7e368316bee86ffac0fdb79319839'/>
<id>urn:sha1:b4139147bbb7e368316bee86ffac0fdb79319839</id>
<content type='text'>
While here, stop abusing struct dirent for something we don't even need
to store.

Approved by:	re (cperciva)
PR:		254455
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	thj, kevans
Differential Revision:	https://reviews.freebsd.org/D55113

(cherry picked from commit 590126789c841d80655869bc075c8980c173dd1c)

diff: Fix build

rc must be defined first.

Fixes:		590126789c84
MFC after:	1 week
X-MFC with:	590126789c84

(cherry picked from commit ee44ab936e84bacaa49847d36aabdf280f9fecce)
(cherry picked from commit 7f412c6f88edc3aafb53a83f1743ad49da4679a9)
</content>
</entry>
<entry>
<title>libc: Rename fscandir{,_b}() to fdscandir{,_b}().</title>
<updated>2026-02-05T14:47:46Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-06-23T13:02:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=35f8b56a41230f5c0853c2e096af72e9e65fa0e5'/>
<id>urn:sha1:35f8b56a41230f5c0853c2e096af72e9e65fa0e5</id>
<content type='text'>
This seems to fit the pattern better (e.g. fdopendir()).

I've added weak references to ease the transition, but since it's only
been a few days, we can remove them (and the ObsoleteFiles entries for
the manual pages) before we branch stable/15.

Fixes:		deeebfdecab5
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D50980

(cherry picked from commit 0a5b763d98b921f921243525ff25a70bbe00cfaa)

libc: Finish removing fscandir{,_b}().

These only existed for a few days before being renamed, so there's no
reason to continue to carry compatibility shims for them.

Fixes:		deeebfdecab5
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D50981

(cherry picked from commit ccf937320a1a7383a2c33698007b7244f66dc022)
</content>
</entry>
<entry>
<title>diff: Fix gcc build.</title>
<updated>2026-02-05T14:47:46Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-06-20T15:30:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c7582d56d29f072b4b18c90569b596d2b37f6b12'/>
<id>urn:sha1:c7582d56d29f072b4b18c90569b596d2b37f6b12</id>
<content type='text'>
Sponsored by:	Klara, Inc.

(cherry picked from commit 28d9586cde8dc783f7b698b10c2b564fde14ae74)
</content>
</entry>
<entry>
<title>diff: Detect loops when diffing directories.</title>
<updated>2026-02-05T14:47:46Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-06-20T11:10:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e8009e02e967618c58a033ace838561ba3400d38'/>
<id>urn:sha1:e8009e02e967618c58a033ace838561ba3400d38</id>
<content type='text'>
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D50936

(cherry picked from commit 42092e1b6625b8226de5f34d22b9a96c713626cb)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>diff: fix failed compare when ignoring file case</title>
<updated>2022-02-18T15:51:38Z</updated>
<author>
<name>Tom Jones</name>
<email>thj@FreeBSD.org</email>
</author>
<published>2022-02-18T15:21:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3931c072c63d5a51d83157009e7f7510e08da80c'/>
<id>urn:sha1:3931c072c63d5a51d83157009e7f7510e08da80c</id>
<content type='text'>
With --ignore-file-name-case we need to compare files regardless of
case. We need to propigate both names down to diffit so we can look up
the correct file when the names differ based on case, otherwise we try
to look up the file using the case from the a tree which might not be
discoverable if its case is different in the b tree.

Reviewed by:	bapt
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D34201
</content>
</entry>
<entry>
<title>diff: add --no-dereference flag</title>
<updated>2022-02-18T15:17:13Z</updated>
<author>
<name>Tom Jones</name>
<email>thj@FreeBSD.org</email>
</author>
<published>2022-02-18T15:13:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f4be3645a14d4faa5a51846054318ccf77c9cd5e'/>
<id>urn:sha1:f4be3645a14d4faa5a51846054318ccf77c9cd5e</id>
<content type='text'>
When diffing files and directories, don't follow symbolic links, instead
compare where the links point to.

Reviewed by:	bapt
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D34203
</content>
</entry>
<entry>
<title>diff: move functions around and reduce their visibility</title>
<updated>2021-09-15T23:36:41Z</updated>
<author>
<name>Piotr Pawel Stefaniak</name>
<email>pstef@FreeBSD.org</email>
</author>
<published>2021-09-04T23:50:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e43df07e3725ef6d14a2ca635598c18295b1b481'/>
<id>urn:sha1:e43df07e3725ef6d14a2ca635598c18295b1b481</id>
<content type='text'>
Most of them become static. There will be more such functions added in
upcoming commits, so they would be inconsistent with existing code.
Improve the existing code instead of reinforcing the unwanted pattern.
</content>
</entry>
<entry>
<title>diff: Import fixes from OpenBSD</title>
<updated>2018-06-09T21:09:24Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2018-06-09T21:09:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e620f7fb56fa741b6e8f196979195f3a14b1dddb'/>
<id>urn:sha1:e620f7fb56fa741b6e8f196979195f3a14b1dddb</id>
<content type='text'>
original commit log by miller@OpenBSD  r1.46:
Fix exit value when diffing directories with missing files and the -N
or -P options are not used.  From Ibrahim Khalifa
</content>
</entry>
<entry>
<title>Fix exit status with -rq when there is a file in one directory but not another,</title>
<updated>2017-07-17T18:06:42Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-17T18:06:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2d920b13cbf3fe93b5ed2c4aa4254d24c0fc95bb'/>
<id>urn:sha1:2d920b13cbf3fe93b5ed2c4aa4254d24c0fc95bb</id>
<content type='text'>
i.e., when print_only is called.

Prior to this change, -rq was always returning 0. After this change it will
return 1 if there is a difference between two directories.

This fixes compatibility with GNU diff and unbreaks backwards compatibility
expectations.

Found when trying to extend diff_test:brief_format_test.

MFC after:	2 months
MFC with:	r321076, r321077
</content>
</entry>
</feed>
