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:
parent
aba4d018b4
commit
1e744a5108
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user