]> git.sur5r.net Git - openldap/commitdiff
ITS#8320 mdb_load: fix loading data from simple text files
authorOrivej Desh <orivej@gmx.fr>
Sun, 22 Nov 2015 01:15:14 +0000 (01:15 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 23 Nov 2015 02:00:49 +0000 (02:00 +0000)
mdb_load -T was supposed to read escaped text, but 21b51cb7 "Add mdb_load"
made it read hex.

libraries/liblmdb/mdb_load.c

index 5373a9d5d6d164d22c7306f8591c9476c43d0ad5..d2f0968188a3b9258a6bbb62a4fbc1b522b1a38c 100644 (file)
@@ -327,7 +327,7 @@ int main(int argc, char *argv[])
                        putflags = MDB_NOOVERWRITE|MDB_NODUPDATA;
                        break;
                case 'T':
-                       mode |= NOHDR;
+                       mode |= NOHDR | PRINT;
                        break;
                default:
                        usage();