git: ebb1fe400615 - main - mv: Improve comment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Dec 2023 17:48:26 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=ebb1fe40061500ccbdae3c804bf6bd2b9ea0a9c8
commit ebb1fe40061500ccbdae3c804bf6bd2b9ea0a9c8
Author: Zhan-Wei <david5061@gapp.nthu.edu.tw>
AuthorDate: 2023-12-26 17:15:46 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-12-26 17:24:22 +0000
mv: Improve comment
Fix typo/grammar error: Use the singlar verb ending on exists.
Event: Advanced UNIX Programming Course (Fall23) at NTHU.
Reviewed by: imp, zlei
Pull Request: https://github.com/freebsd/freebsd-src/pull/940
---
bin/mv/mv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 1dee9348cc3b..7a1ecba7e076 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -172,7 +172,7 @@ do_move(const char *from, const char *to)
*/
if (!fflg && !access(to, F_OK)) {
- /* prompt only if source exist */
+ /* prompt only if source exists */
if (lstat(from, &sb) == -1) {
warn("%s", from);
return (1);