Skip to content

Commit 3c9ab8e

Browse files
gddouglasbagnall
authored andcommitted
lib/tdb: let tdbtool return error on failure
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15890 Unless there is a striking reason not to do so tdbtool should return a non-zero return code when a failure was encountered. Most known callers have to parse stdout to check whether a command has succeeded or failed. Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Sat Aug 2 08:20:53 UTC 2025 on atb-devel-224
1 parent e5b4b3d commit 3c9ab8e

File tree

2 files changed

+109
-80
lines changed

2 files changed

+109
-80
lines changed

lib/tdb/man/tdbtool.8.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@
263263
<para>This man page is correct for version 3.6 of the Samba suite.</para>
264264
</refsect1>
265265

266+
<refsect1>
267+
<title>EXIT STATUS</title>
268+
269+
<para>The tdbtool program returns 0 if the operation
270+
succeeded, or 1 if the operation failed.</para>
271+
</refsect1>
272+
266273
<refsect1>
267274
<title>AUTHOR</title>
268275

0 commit comments

Comments
 (0)