From 2ff8d37f7c51c03e37638c37e030e060d2c34669 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 16 Jan 2003 13:29:19 +0000 Subject: replace occurences of "$foo ? $foo : $bar" with "$foo || $bar" --- perl-install/standalone/drakperm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone/drakperm') diff --git a/perl-install/standalone/drakperm b/perl-install/standalone/drakperm index f2b79be3e..8d33efd33 100755 --- a/perl-install/standalone/drakperm +++ b/perl-install/standalone/drakperm @@ -335,7 +335,7 @@ sub row_setting_dialog { #$group = ($group_read->get_active ? 4 : 0)+($group_write->get_active ? 2 : 0)+($group_execute->get_active ? 1 : 0); #$other = ($other_read->get_active ? 4 : 0)+($other_write->get_active ? 2 : 0)+($other_execute->get_active ? 1 : 0); my $s = ($sticky->get_active ? 1 : 0) + ($suid->get_active ? 4 : 0) + ($gid->get_active ? 2 : 0); - $Perm_list->set_text($row,3, ($s ? $s : '') . $user . $group . $other); + $Perm_list->set_text($row,3, ($s || '') . $user . $group . $other); $dlg->destroy; $modified++; }); -- cgit v1.2.1