1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r10450: Use exit code 1 in case of fatal errors

(This used to be commit 88ece24a44)
This commit is contained in:
Jelmer Vernooij 2005-09-23 13:06:23 +00:00 committed by Gerald (Jerry) Carter
parent aba4d018b4
commit 1e744a5108

View File

@ -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);