]> hydra-www.ietfng.org Git - csdb/commitdiff
bugfix: cdb ingest --relative
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Wed, 12 Oct 2022 01:06:48 +0000 (02:06 +0100)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Wed, 12 Oct 2022 01:06:48 +0000 (02:06 +0100)
cdb

diff --git a/cdb b/cdb
index a88a3c79c97ed1bb2c1d005a4c1190e38da599a3..32540fddc1162e55e017d5e66fdc682d4afc3e13 100755 (executable)
--- a/cdb
+++ b/cdb
@@ -305,7 +305,7 @@ mksubcmd(function(c)
   local sth_superseder_by_hash = assert(sql_mk_superseder_find_by_hash(dbh))
 
   local path_crush =
-    args.relative and function(p) plpath.relpath(p, args.relative) end
+    args.relative and function(p) return plpath.relpath(p, args.relative) end
                   or plpath.basename
 
   local function explain_found_hash(h, p)