]> Git [git.vados.ru] :: Repos - Mikrotiks/Mikrotiks.git/commitdiff
Autocommit in repo: , generated by owner: mikro_bak, in 03:40:02 05.04.2026.
authorvados-dev <vados@vados.ru>
Sun, 5 Apr 2026 00:40:03 +0000 (03:40 +0300)
committervados-dev <vados@vados.ru>
Sun, 5 Apr 2026 00:40:03 +0000 (03:40 +0300)
.config/mc/ini
bin/ros-diff.sh

index 13413528881ce6333a6f0c342986e7259c95da16..9d86c911e6deed54baf85ff834065ec38be9ad40 100644 (file)
@@ -159,7 +159,7 @@ ignore_dirs_enable=true
 ignore_dirs=
 
 [Panelize]
-Find rejects after patching=find . -name \\*.rej -print
-Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print
-Modified git files=git ls-files --modified
 Find *.orig after patching=find . -name \\*.orig -print
+Modified git files=git ls-files --modified
+Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print
+Find rejects after patching=find . -name \\*.rej -print
index 373b7fbd0348f4fefe889f32a59e46f86a8ba9e2..1a46738c9746e1b34ea14ac4de547a249e403db9 100755 (executable)
@@ -350,7 +350,7 @@ check_directory() {
 }
 
 backup_binary() {
-    local bin_name="${1}"
+    local bin_file="${1}"
     local bin_pass="${2:-$DEFAULT_BINPWD}"
     local bin_crypt="${DEFAULT_BIN_CRYPT}"
     local bin_tmp="Binary.backup"
@@ -382,8 +382,8 @@ backup_binary() {
 
         log_msg="- Start download ${bin_tmp} file to ${BackupDir}..."
         log_info "${log_msg}"
-
-        ${SCP_STR}:/${bin_tmp} ${bin_name} >/dev/null & pid=$!
+        # Здесь для /dev/null не хватит прав!
+        ${SCP_STR}:/${bin_tmp} ${bin_file} >/dev/null & pid=$!
         spinstr "$pid"
         wait "$pid"
         rc=$?
@@ -404,7 +404,9 @@ backup_binary() {
     fi
     log_msg="- Remove ${bin_tmp} file on ${RouterName}."
     log_info "${log_msg}"
-
+    # Здесь не удаляется уже почему-то созданный ${bin_file}, хотя compare_config сообщил, 
+    # что конфиг не менялся (а он 0 как и то, с чем он сравнивал)!
+    # А потом не удаляется и каталог ${TempDir} из 551-й строки.
     if ${SSH_STR} "/file remove [find name=${bin_tmp}]"; then
         log_msg="- Remove ${bin_tmp} file on ${RouterName} complete succesfully!"
         log_success "${log_msg}"