Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package nsswitch-config for openSUSE:Factory
checked in at 2025-11-19 14:55:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nsswitch-config (Old)
and /work/SRC/openSUSE:Factory/.nsswitch-config.new.2061 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nsswitch-config"
Wed Nov 19 14:55:42 2025 rev:2 rq:1318485 version:0.0.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/nsswitch-config/nsswitch-config.changes
2025-11-12 21:16:41.639934984 +0100
+++
/work/SRC/openSUSE:Factory/.nsswitch-config.new.2061/nsswitch-config.changes
2025-11-19 14:58:57.396879124 +0100
@@ -1,0 +2,11 @@
+Tue Nov 18 17:28:03 UTC 2025 - [email protected]
+
+- Update to version 0.0.6:
+ * Crash while parsing empty values.
+
+-------------------------------------------------------------------
+Tue Nov 18 15:40:56 UTC 2025 - Stefan Schubert <[email protected]>
+
+- Added snippeds to /usr/lib/nsswitch.conf.d directory.
+
+-------------------------------------------------------------------
Old:
----
nsswitch-config-0.0.5.tar.xz
New:
----
nsswitch-config-0.0.6.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ nsswitch-config.spec ++++++
--- /var/tmp/diff_new_pack.iBL4vM/_old 2025-11-19 14:59:01.425049320 +0100
+++ /var/tmp/diff_new_pack.iBL4vM/_new 2025-11-19 14:59:01.437049827 +0100
@@ -16,7 +16,7 @@
#
Name: nsswitch-config
-Version: 0.0.5
+Version: 0.0.6
Release: 0
Summary: Handling nsswitch.conf entries
License: GPL-2.0-or-later
@@ -38,10 +38,13 @@
%install
%meson_install
+install -D -d -m 0755 %{buildroot}%{_datadir}/nsswitch.conf.d
+install -D -m 0644
%{_builddir}/%{name}-%{version}/data/usr/share/nsswitch.conf.d/*
%{buildroot}%{_datadir}/nsswitch.conf.d
%files
%doc README.md
%{_bindir}/nsswitch-config
%{_mandir}/man8/*.8%{?ext_man}
%license COPYING
-
+%dir %{_datadir}/nsswitch.conf.d
+%{_datadir}/nsswitch.conf.d/*
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.iBL4vM/_old 2025-11-19 14:59:01.889068926 +0100
+++ /var/tmp/diff_new_pack.iBL4vM/_new 2025-11-19 14:59:01.921070278 +0100
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/schubi2/nsswitch-config.git</param>
- <param
name="changesrevision">e5cc7c6922f898e1eaf0621442983da8e19d31bd</param></service></servicedata>
+ <param
name="changesrevision">5082800fe19d746c6b3fd83e82ae9674747c02ea</param></service></servicedata>
(No newline at EOF)
++++++ nsswitch-config-0.0.5.tar.xz -> nsswitch-config-0.0.6.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nsswitch-config-0.0.5/NEWS
new/nsswitch-config-0.0.6/NEWS
--- old/nsswitch-config-0.0.5/NEWS 2025-11-12 12:25:25.000000000 +0100
+++ new/nsswitch-config-0.0.6/NEWS 2025-11-18 18:26:34.000000000 +0100
@@ -1,3 +1,7 @@
+Version 0.0.6
+* --admin_changed: Showing more information.
+* Fix: Crash while parsing empty values.
+
Version 0.0.5
* Create a /etc/nsswitch.conf.rpmnew if a admin created /etc/nsswitch.conf
exists.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nsswitch-config-0.0.5/meson.build
new/nsswitch-config-0.0.6/meson.build
--- old/nsswitch-config-0.0.5/meson.build 2025-11-12 12:25:25.000000000
+0100
+++ new/nsswitch-config-0.0.6/meson.build 2025-11-18 18:26:34.000000000
+0100
@@ -1,5 +1,5 @@
project('nsswitch-config', 'c',
- version : '0.0.5',
+ version : '0.0.6',
license : 'LGPLv2.1+',
default_options : [
'buildtype=debugoptimized',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nsswitch-config-0.0.5/src/nsswitch-config.c
new/nsswitch-config-0.0.6/src/nsswitch-config.c
--- old/nsswitch-config-0.0.5/src/nsswitch-config.c 2025-11-12
12:25:25.000000000 +0100
+++ new/nsswitch-config-0.0.6/src/nsswitch-config.c 2025-11-18
18:26:34.000000000 +0100
@@ -163,10 +163,13 @@
force = 1;
break;
case 'a':
- if (user_changed_file(output_file))
+ if (user_changed_file(output_file)) {
+ fprintf(stderr, "true\n");
return EXIT_SUCCESS;
- else
+ } else {
+ fprintf(stderr, "false\n");
return EXIT_FAILURE;
+ }
case 'h':
usage();
return EXIT_SUCCESS;
@@ -297,7 +300,7 @@
}
econf_error = econf_setStringValue(output_key_file, NULL,
keys[k], new_value);
free(new_value);
- } else if (econf_error == ECONF_SUCCESS) {
+ } else if (econf_error == ECONF_SUCCESS && add_value != NULL &&
strlen(add_value) != 0) {
/* appending entry */
char *token, *str, *tofree;
int found = 0;
@@ -366,7 +369,7 @@
/* Writing comment that the output file has been generated by
nsswitch-config */
econf_error = econf_getKeys(output_key_file,
NULL, &key_count, &keys);
- if (econf_error) {
+ if (econf_error && econf_error != ECONF_NOKEY) {
print_error(econf_error);
ret = EXIT_FAILURE;
goto cleanup;
@@ -403,7 +406,8 @@
}
}
}
- econf_free(keys);
+ if (key_count > 1)
+ econf_free(keys);
if (user_changed_file(output_file) && !force) {
char *dest = NULL;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nsswitch-config-0.0.5/tests/tst-nsswitch1.sh
new/nsswitch-config-0.0.6/tests/tst-nsswitch1.sh
--- old/nsswitch-config-0.0.5/tests/tst-nsswitch1.sh 2025-11-12
12:25:25.000000000 +0100
+++ new/nsswitch-config-0.0.6/tests/tst-nsswitch1.sh 2025-11-18
18:26:34.000000000 +0100
@@ -20,8 +20,8 @@
fi
fi
-echo $nsswitch_config_exe --etcdir=$nsswitch_config_root/etc
--output=$nsswitch_config_root/nsswitch.cmp
-$nsswitch_config_exe --etcdir=$nsswitch_config_root/etc
--output=$nsswitch_config_root/nsswitch.cmp
+echo $nsswitch_config_exe --etcdir=$nsswitch_config_root/etc
--vendordir=$nsswitch_config_root/usr/share
--output=$nsswitch_config_root/nsswitch.cmp
+$nsswitch_config_exe --etcdir=$nsswitch_config_root/etc
--vendordir=$nsswitch_config_root/usr/share
--output=$nsswitch_config_root/nsswitch.cmp
file1=$nsswitch_config_root/nsswitch.cmp
file2=$nsswitch_config_root/nsswitch.out