Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package distrobox for openSUSE:Factory 
checked in at 2026-02-03 21:35:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/distrobox (Old)
 and      /work/SRC/openSUSE:Factory/.distrobox.new.1995 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "distrobox"

Tue Feb  3 21:35:13 2026 rev:29 rq:1330780 version:1.8.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/distrobox/distrobox.changes      2026-02-02 
14:59:11.812669067 +0100
+++ /work/SRC/openSUSE:Factory/.distrobox.new.1995/distrobox.changes    
2026-02-03 21:36:17.704704921 +0100
@@ -1,0 +2,6 @@
+Tue Feb  3 07:44:08 UTC 2026 - Thomas Blume <[email protected]>
+
+- add newline when manually adding user (bsc#1257302)
+  * add 0001-fix-add-newline-when-manually-adding-user.patch
+
+-------------------------------------------------------------------

New:
----
  0001-fix-add-newline-when-manually-adding-user.patch

----------(New B)----------
  New:- add newline when manually adding user (bsc#1257302)
  * add 0001-fix-add-newline-when-manually-adding-user.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ distrobox.spec ++++++
--- /var/tmp/diff_new_pack.XN210h/_old  2026-02-03 21:36:18.260728290 +0100
+++ /var/tmp/diff_new_pack.XN210h/_new  2026-02-03 21:36:18.264728458 +0100
@@ -24,6 +24,7 @@
 URL:            https://github.com/89luca89/distrobox
 Source:         
https://github.com/89luca89/distrobox/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:        distrobox.conf
+Patch0:         0001-fix-add-newline-when-manually-adding-user.patch
 Requires:       %{_bindir}/basename
 Requires:       %{_bindir}/find
 Requires:       %{_bindir}/grep

++++++ 0001-fix-add-newline-when-manually-adding-user.patch ++++++
>From 89d6e0cb8d2244bf96124aec4b4b5f114d24b879 Mon Sep 17 00:00:00 2001
From: root <[email protected]>
Date: Thu, 29 Jan 2026 12:15:02 +0100
Subject: [PATCH] fix: add newline when manually adding user

---
 distrobox-init | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/distrobox-init b/distrobox-init
index ba6eb41..fb6e482 100755
--- a/distrobox-init
+++ b/distrobox-init
@@ -2343,7 +2343,7 @@ if ! grep -q "^${container_user_name}:" /etc/group; then
        if ! groupadd --force --gid "${container_user_gid}" 
"${container_user_name}"; then
                # It may occur that we have users with unsupported user name 
(eg. on LDAP or AD)
                # So let's try and force the group creation this way.
-               printf "%s:x:%s:" "${container_user_name}" 
"${container_user_gid}" >> /etc/group
+               printf "%s:x:%s:\n" "${container_user_name}" 
"${container_user_gid}" >> /etc/group
        fi
 fi
 ###############################################################################
@@ -2405,7 +2405,7 @@ if ! grep -q "^$(printf '%s' "${container_user_name}" | 
tr '\\' '.'):" /etc/pass
 
                printf "Warning: There was a problem setting up the user with 
usermod, trying manual addition\n"
 
-               printf "%s:x:%s:%s:%s:%s:%s" \
+               printf "%s:x:%s:%s:%s:%s:%s\n" \
                        "${container_user_name}" "${container_user_uid}" \
                        "${container_user_gid}" "${container_user_name}" \
                        "${container_user_home}" "${SHELL:-"/bin/bash"}" >> 
/etc/passwd
@@ -2439,7 +2439,7 @@ elif [ ! -e /etc/passwd.done ]; then
                # Modify the user
                printf "distrobox: Setting up existing user: /etc/passwd...\n"
                sed -i "s|^${container_user_name}.*||g" /etc/passwd
-               printf "%s:x:%s:%s:%s:%s:%s" \
+               printf "%s:x:%s:%s:%s:%s:%s\n" \
                        "${container_user_name}" "${container_user_uid}" \
                        "${container_user_gid}" "${container_user_name}" \
                        "${container_user_home}" "${SHELL:-"/bin/bash"}" >> 
/etc/passwd
-- 
2.52.0

Reply via email to