Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package linuxrc for openSUSE:Factory checked 
in at 2021-11-28 21:29:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/linuxrc (Old)
 and      /work/SRC/openSUSE:Factory/.linuxrc.new.1895 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "linuxrc"

Sun Nov 28 21:29:54 2021 rev:303 rq:933719 version:8.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/linuxrc/linuxrc.changes  2021-10-11 
15:31:25.422826351 +0200
+++ /work/SRC/openSUSE:Factory/.linuxrc.new.1895/linuxrc.changes        
2021-11-28 21:29:57.626104690 +0100
@@ -1,0 +2,7 @@
+Thu Nov 25 09:01:16 UTC 2021 - [email protected]
+
+- merge gh#openSUSE/linuxrc#278
+- allow option matching based on patterns (jsc#SLE-21308)
+- 8.6
+
+--------------------------------------------------------------------

Old:
----
  linuxrc-8.05.tar.xz

New:
----
  linuxrc-8.6.tar.xz

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

Other differences:
------------------
++++++ linuxrc.spec ++++++
--- /var/tmp/diff_new_pack.gPmHQr/_old  2021-11-28 21:29:59.246099507 +0100
+++ /var/tmp/diff_new_pack.gPmHQr/_new  2021-11-28 21:29:59.250099493 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           linuxrc
-Version:        8.05
+Version:        8.6
 Release:        0
 Summary:        SUSE Installation Program
 License:        GPL-3.0+

++++++ linuxrc-8.05.tar.xz -> linuxrc-8.6.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-8.05/VERSION new/linuxrc-8.6/VERSION
--- old/linuxrc-8.05/VERSION    2021-09-13 09:16:12.000000000 +0200
+++ new/linuxrc-8.6/VERSION     2021-11-25 10:01:16.000000000 +0100
@@ -1 +1 @@
-8.05
+8.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-8.05/changelog new/linuxrc-8.6/changelog
--- old/linuxrc-8.05/changelog  2021-09-13 09:16:12.000000000 +0200
+++ new/linuxrc-8.6/changelog   2021-11-25 10:01:16.000000000 +0100
@@ -1,3 +1,7 @@
+2021-11-25:    8.6
+       - merge gh#openSUSE/linuxrc#278
+       - allow option matching based on patterns (jsc#SLE-21308)
+
 2021-09-13:    8.05
        - merge gh#openSUSE/linuxrc#235
        - let curl figure out proper authentication method (jsc#PM-2272)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/linuxrc-8.05/file.c new/linuxrc-8.6/file.c
--- old/linuxrc-8.05/file.c     2021-09-13 09:16:12.000000000 +0200
+++ new/linuxrc-8.6/file.c      2021-11-25 10:01:16.000000000 +0100
@@ -6,13 +6,14 @@
  *
  */
 
-#define _GNU_SOURCE            /* getline */
+#define _GNU_SOURCE            /* getline, fnmatch */
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <fnmatch.h>
 #include <sys/mount.h>
 #include <arpa/inet.h>
 #include <sys/types.h>
@@ -444,6 +445,7 @@
   if(flags & (kf_cmd + kf_cfg)) {
     for(sl = config.ptoptions; sl; sl = sl->next) {
       if(!strcasecmpignorestrich(sl->key, str)) return key_is_ptoption;
+      if(!fnmatch(sl->key, str, FNM_EXTMATCH + FNM_CASEFOLD)) return 
key_is_ptoption;
     }
   }
 
@@ -1363,6 +1365,11 @@
             str_copy(&sl->value, f->value);
             break;
           }
+          // If a pattern matches, create an entry with the actual option name.
+          if(!fnmatch(sl->key, f->key_str, FNM_EXTMATCH + FNM_CASEFOLD)) {
+            slist_setentry(&config.ptoptions, f->key_str, f->value, 1);
+            break;
+          }
         }
         break;
 

Reply via email to