my $Is_MSWin32 = $^O eq 'MSWin32';
my $Is_Dos = $^O eq 'dos';
my $Is_OS2 = $^O eq 'os2';
+my $Is_BeOS = $^O eq 'beos';
sub usage{
warn "@_\n" if @_;
usage if $opt_h;
# attempt to drop privs if we should be tainting and aren't
-if (!($Is_VMS || $Is_MSWin32 || $Is_Dos || $Is_OS2) && ($> == 0 || $< == 0)
- && !am_taint_checking())
+if (!($Is_VMS || $Is_MSWin32 || $Is_Dos || $Is_OS2 || $Is_BeOS)
+ && ($> == 0 || $< == 0) && !am_taint_checking())
{
my $id = eval { getpwnam("nobody") };
$id = eval { getpwnam("nouser") } unless defined $id;
if ((my $opts = do{ no warnings; $opt_t + $opt_u + $opt_m + $opt_l }) > 1) {
usage("only one of -t, -u, -m or -l")
}
-elsif ($Is_MSWin32
- || $Is_Dos
- || !($ENV{TERM} && $ENV{TERM} !~ /dumb|emacs|none|unknown/i))
+elsif ($Is_MSWin32 || $Is_Dos || $Is_BeOS
+ || !($ENV{TERM} && $ENV{TERM} !~ /dumb|emacs|none|unknown/i))
{
$opt_t = 1 unless ( $opts || $opt_n );
}