git: e52546a3a75f - main - diff: fix typo in a comment

Baptiste Daroussin bapt at FreeBSD.org
Wed Jan 27 11:19:01 UTC 2021


The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=e52546a3a75f6e4b327178f4d50a98dd99101c64

commit e52546a3a75f6e4b327178f4d50a98dd99101c64
Author:     Baptiste Daroussin <bapt at FreeBSD.org>
AuthorDate: 2021-01-26 14:20:44 +0000
Commit:     Baptiste Daroussin <bapt at FreeBSD.org>
CommitDate: 2021-01-27 11:18:46 +0000

    diff: fix typo in a comment
---
 usr.bin/diff/diffreg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index 282db0f9c447..f8c25f822147 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -348,7 +348,7 @@ diffreg(char *file1, char *file2, int flags, int capsicum)
 		if (caph_rights_limit(fileno(f2), &rights_ro) < 0)
 			err(2, "unable to limit rights on: %s", file2);
 		if (fileno(f1) == STDIN_FILENO || fileno(f2) == STDIN_FILENO) {
-			/* stding has already been limited */
+			/* stdin has already been limited */
 			if (caph_limit_stderr() == -1)
 				err(2, "unable to limit stderr");
 			if (caph_limit_stdout() == -1)


More information about the dev-commits-src-all mailing list