summaryrefslogtreecommitdiff
path: root/source4/pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-23 13:06:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:47 -0500
commit1e744a5108f47a06f1587aed047ad536bd5af4f4 (patch)
tree50df780a79fc06fb2cecebfd8e096c58d031f76d /source4/pidl
parentaba4d018b4b9091789a47d1e40fc15c5e848794b (diff)
downloadsamba-1e744a5108f47a06f1587aed047ad536bd5af4f4.tar.gz
samba-1e744a5108f47a06f1587aed047ad536bd5af4f4.tar.bz2
samba-1e744a5108f47a06f1587aed047ad536bd5af4f4.zip
r10450: Use exit code 1 in case of fatal errors
(This used to be commit 88ece24a4400cabef95fd1eb4ca14b7df085b529)
Diffstat (limited to 'source4/pidl')
-rwxr-xr-xsource4/pidl/pidl8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/pidl/pidl b/source4/pidl/pidl
index 57105b4472..dc85630241 100755
--- a/source4/pidl/pidl
+++ b/source4/pidl/pidl
@@ -542,7 +542,7 @@ Ethereal parsers:
}
# main program
-GetOptions (
+my $result = GetOptions (
'help|h|?' => \$opt_help,
'outputdir=s' => \$opt_outputdir,
'dump-idl' => \$opt_dump_idl,
@@ -569,6 +569,10 @@ GetOptions (
'warn-compat' => \$opt_warn_compat
);
+if (not $result) {
+ exit(1);
+}
+
if ($opt_help) {
ShowHelp();
exit(0);
@@ -764,7 +768,7 @@ $dcom
if (scalar(@ARGV) == 0) {
print "pidl: no input files\n";
- exit(0);
+ exit(1);
}
process_file($_) foreach (@ARGV);