Browse Source

Changes to make $> > 0 happy.

master
freesource 23 years ago
parent
commit
05da1a4a31
  1. 2
      BootRoot/YardBox.pm
  2. 12
      gbootroot

2
BootRoot/YardBox.pm

@ -579,7 +579,7 @@ sub continue {
sub check { sub check {
$error = read_contents_file("$template_dir$template"); $error = read_contents_file("$template_dir$template", $tmp);
return if $error && $error eq "ERROR"; return if $error && $error eq "ERROR";
} }

12
gbootroot

@ -589,16 +589,16 @@ else {
my $user = $>; my $user = $>;
if (!-d "$tmp1/gboot_non_root_" . $user) { if (!-d "$tmp1/gboot_non_root_$user") {
$tmp = "$tmp1/gboot_non_root" . $user if err_custom_perl( $tmp = "$tmp1/gboot_non_root_$user" if err_custom_perl(
"mkdir $tmp1/gboot_non_root_" . $user, "mkdir $tmp1/gboot_non_root_$user",
"gBootRoot: ERROR: Could not make temporary directory") != 2; "gBootRoot: ERROR: Could not make temporary directory") != 2;
} }
$tmp = "$tmp1/gboot_non_root_" . $user; $tmp = "$tmp1/gboot_non_root_" . $user;
if (!-d "$tmp1/gboot_non_root_mnt_" . $user) { if (!-d "$tmp1/gboot_non_root_mnt_$user") {
$mnt = "$tmp1/gboot_non_root_mnt_" . $user if err_custom_perl( $mnt = "$tmp1/gboot_non_root_mnt_$user" if err_custom_perl(
"mkdir $tmp1/gboot_non_root_mnt_" . $user, "mkdir $tmp1/gboot_non_root_mnt_$user",
"gBootRoot: ERROR: Could not make mount directory") != 2; "gBootRoot: ERROR: Could not make mount directory") != 2;
} }
$mnt = "$tmp1/gboot_non_root_mnt" . $user; $mnt = "$tmp1/gboot_non_root_mnt" . $user;

Loading…
Cancel
Save