Mock Version: 6.2 Mock Version: 6.2 Mock Version: 6.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/nano.spec'], chrootPath='/var/lib/mock/dist-an23.5-build-570668-92677/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/nano.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1787270400 Wrote: /builddir/build/SRPMS/nano-8.0-2.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/nano.spec'], chrootPath='/var/lib/mock/dist-an23.5-build-570668-92677/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/nano.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1787270400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OcH0xd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nano-8.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/nano-8.0.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd nano-8.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/CVE-2026-6390.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f The text leading up to this was: -------------------------- |From da7e75a7f5d9afca246be375219c9832c38c2d6c Mon Sep 17 00:00:00 2001 |From: PengLAI Code |Date: Fri, 21 Aug 2026 02:20:00 +0800 |Subject: [PATCH] files: do not treat a stored error message as a format string | |Fix CVE-2026-6390. | |When several files are opened at startup and one of them produces an |ALERT-level message, statusline() stashes the formatted message in |openfile->errormessage so that it can be replayed when the user switches |to that buffer. redecorate_after_switch() replayed that text by passing |it as the format argument of statusline(), so a file name containing |printf conversion specifiers was reinterpreted as format directives, |allowing stack memory disclosure, a crash, or potentially arbitrary |memory writes. | |Pass the stored message as a plain string argument instead. | |Upstream commit: 0b7328bce452bf1b0bbff81276425d4809a9b6fd (nano 9.0) |Adapted-by: PengLAI Code |--- | src/files.c | 2 +- | 1 file changed, 1 insertion(+), 1 deletion(-) | |diff --git a/src/files.c b/src/files.c |index 6b32c92..c18d684 100644 |--- a/src/files.c |+++ b/src/files.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.OcH0xd (%prep) Bad exit status from /var/tmp/rpm-tmp.OcH0xd (%prep) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/nano.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/nano.spec'