s3:net idmap dump: report correct database file when failed to open idmap db.
authorMichael Adam <obnox@samba.org>
Wed, 9 Feb 2011 12:47:21 +0000 (13:47 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Feb 2011 13:00:35 +0000 (14:00 +0100)
source3/utils/net_idmap.c

index 347cbbf8a512b729e2fb1cb5a1934e3819d3c07b..d042c16ec40b91454bb12526dc705090422f75aa 100644 (file)
@@ -124,7 +124,7 @@ static int net_idmap_dump(struct net_context *c, int argc, const char **argv)
        db = db_open(mem_ctx, dbfile, 0, TDB_DEFAULT, O_RDONLY, 0);
        if (db == NULL) {
                d_fprintf(stderr, _("Could not open idmap db (%s): %s\n"),
-                         argv[0], strerror(errno));
+                         dbfile, strerror(errno));
                goto done;
        }