diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-02 22:40:13 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-04 08:51:57 +0100 |
commit | b50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c (patch) | |
tree | df6a6102845bd055c9f757323b0ae8489c9954c9 /source4/lib/ldb/tools/ldbdel.c | |
parent | 1b9317381344c48be2d90353ba61490161615485 (diff) | |
download | samba-b50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c.tar.gz samba-b50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c.tar.bz2 samba-b50ebc3228c9b4eacbccaf1ec4572c3ee7b07e1c.zip |
ldb:ldb tools - return LDB_ERR_INVALID_DN_SYNTAX on wrong DN parameters
Not all LDB databases have further DN checks.
Reviewed by: Tridge
Diffstat (limited to 'source4/lib/ldb/tools/ldbdel.c')
-rw-r--r-- | source4/lib/ldb/tools/ldbdel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbdel.c b/source4/lib/ldb/tools/ldbdel.c index d374fa96e3..270cb83b53 100644 --- a/source4/lib/ldb/tools/ldbdel.c +++ b/source4/lib/ldb/tools/ldbdel.c @@ -113,7 +113,7 @@ int main(int argc, const char **argv) dn = ldb_dn_new(ldb, ldb, options->argv[i]); if ( ! ldb_dn_validate(dn)) { printf("Invalid DN format\n"); - return LDB_ERR_OPERATIONS_ERROR; + return LDB_ERR_INVALID_DN_SYNTAX; } if (options->recursive) { ret = ldb_delete_recursive(ldb, dn,req_ctrls); |