Fix lookup of extra fingerprint files
authorFelix Fietkau <[email protected]>
Mon, 26 May 2025 10:12:56 +0000 (12:12 +0200)
committerFelix Fietkau <[email protected]>
Mon, 26 May 2025 10:12:56 +0000 (12:12 +0200)
Signed-off-by: Felix Fietkau <[email protected]>
files/usr/sbin/ufpd

index d06b4c7b7886ca7c52aef89bb689ec1469df62cc..e502234843fea9e8fce7678841093860b5c05a49 100755 (executable)
@@ -363,7 +363,7 @@ global.ubus_object = {
        },
 };
 
-for (let f in [ "/usr/share/ufp/devices.bin", glob("/usr/share/ufp/db/*.bin") ]) {
+for (let f in [ "/usr/share/ufp/devices.bin", ...glob("/usr/share/ufp/db/*.bin") ]) {
        let ht;
        try {
                ht = uht.open(f);