Envy
view release on metacpan or search on metacpan
** 2000-06-06 RELEASE 2.48
- Make launche without -c overlay with more useful semantics.
** 2000-04-18 RELEASE 2.47
- getpwuid via ENVY_[RE]UID*
- Try to convert ENVY_BASE to an absolute path.
- Documentation tweaks.
** 1999-10-14 RELEASE 2.46
- Improved installation instructions.
while ($link =~ s,\.\./$,,) {
$rbase =~ s,/[^/]+/$,/,;
}
$rbase .= $link . $envy;
}
}
return tree_top($rbase);
} elsif ($var =~ m/^ENVY_(R|E)UID([_\w]*)$/) {
my $id = $1 eq 'R'? $< : $>;
my $field = $2;
my $pw = $PASSWD{$id} ||= [getpwuid($id)];
my $got = do {
if ($field eq '') {
$id
} elsif ($field eq '_NAME') {
$pw->[0]
} elsif ($field eq '_GID') {
$pw->[3]
} elsif ($field eq '_GCOS') {
$pw->[6]
} elsif ($field eq '_DIR') {
last if $o->{errors} > 5;
}
if ($how < -1) {
$o->set_refcnt($e, 0);
} else {
$o->refcnt_dec($e, $by);
}
}
$o->t("[$how] $e DONE");
$LOGIN ||= getlogin || getpwuid($<) || "?";
push @{$o->{'log'}}, { when => time(), who => $LOGIN,
action => ($how<0?'un':'').'load',
what => $e };
}
# ---------------------------------------------------------------
# DURING TRANSACTION
sub envy { #PUBLIC
my ($o, $reverse, $e) = @_;
( run in 0.349 second using v1.01-cache-2.11-cpan-8d75d55dd25 )