From 4b753046f59c73c16f1b7235d6746b3da2c39c55 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 9 Oct 2026 00:56:05 +0200 Subject: [PATCH] cmirror: Fix name of safety file in --help output `--safety` checks for `.PMIRROR_ENABLED` (see `cmirror.c`, the `g_strdup_printf("%s/.PMIRROR_ENABLED", master_path)` call), but the help text names `.PMIRROR_ENABLE`: $ cmirror --help 2>&1 | grep -e --safety --safety check existance of /path/.PMIRROR_ENABLE Creating the file as documented therefore does not enable the mirror, and the run dies with: safety file /.PMIRROR_ENABLED not found. Terminating Name the correct file, and fix the spelling of *existence*. Assisted-by: claude-opus-5.5 (Claude Code) --- cmirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmirror.c b/cmirror.c index 3fd8218..af16757 100644 --- a/cmirror.c +++ b/cmirror.c @@ -580,7 +580,7 @@ static void usage(char *argv0) { " --delete delete files on client which are not on server\n" " --debug log some debugging info\n" " --lock IDENT get exclusive lock on /var/lock/IDENT or die (not for slave)\n" - " --safety check existance of /path/.PMIRROR_ENABLE\n" + " --safety check existence of /path/.PMIRROR_ENABLED\n" " --identity_file FILE use this identity file for ssh\n" " --mkdir create directory on target\n" " --exclude path exclude path ( use pattern \"./name1/name\" only) , max be specified multiple times\n"