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:01:37 +0000 (02:01 +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 5373a9d..d2f0968 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();