view release on metacpan or search on metacpan
## preserve permissions and status
if ( $self->{'Persist'} eq 'yes' ){
my @stat = stat $curr;
chmod( $stat[2], $next ) or carp "error: chmod failed: ($next)";
utime( $stat[8], $stat[9], $next ) or carp "error: failed: ($next)";
chown( $stat[4], $stat[5], $next ) or carp "error: chown failed: ($next)";
}
# now truncate the file
if( $self->{'Flock'} eq 'yes' )
{
The C<Persist> argument allows you to control whether the program will
try and set the current log file ownership and permissions on any new
files that may be created by the rotation. In some circumstances the
program doing the file rotation may not have sufficient permission to
C<chown> on the file. By default the program will try and preserve
ownership and permissions.
=item rotate()
This method will copy the file passed in C<new> to a file of the same
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Logic/Tools.pm view on Meta::CPAN
{
# ÐапиÑÑ Ñайле блокиÑовки
open(my $pid_file, ">" ,$lock_file) || die "[FAILED] Ðе ÑдалоÑÑ ÑоздаÑÑ Ñайл блокиÑовки $lock_file\n";
print $pid_file "$pid";
close $pid_file;
chown $uid, $gid, $lock_file;
exit;
}
else
{
# daemon
lib/Logic/Tools.pm view on Meta::CPAN
{
# ÐапиÑÑ Ñайле блокиÑовки
open(my $pid_file, ">" ,$lock_file) || die "[FAILED] can't create block file $lock_file\n";
print $pid_file "$first_child_pid";
close $pid_file;
chown $uid, $gid, $lock_file;
while(1)
{
# ÐÑоÑеÑÑ Ð·Ð°Ð¿ÑÑен, но акÑивного пÑоÑеÑÑа Ñ ÑказаннÑм PID неÑ
unless( -e "/proc/$first_child_pid" )
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003||Viu
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ppport.h view on Meta::CPAN
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
lib/ppport.h view on Meta::CPAN
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
# Copy wiki root (empty, for data persistence) and entrypoint
COPY --from=build /build/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN mkdir -p /wiki && chown -R appuser:appgroup /wiki
ENV PERL5LIB=/usr/local/lib/perl5/site_perl/5.40.3:/usr/local/lib/perl5/site_perl/5.40.3/x86_64-linux-gnu
ENV MCP_WIKI_ROOT=/wiki
EXPOSE 8080
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MDK/Common/System.pm view on Meta::CPAN
foreach (list_skels($prefix, $out_rel)) {
-d MDK::Common::File::dirname($_) or !-e $_ or $force or next;
template2file($in, $_, %toreplace);
m|/home/(.+?)/| and chown(getpwnam($1), getgrnam($1), $_);
}
}
sub read_gnomekderc {
my ($file, $category) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
bin/scripts/moby-s-caching.pl view on Meta::CPAN
}
use English qw( -no_match_vars );
use strict;
# performs a chown on a list of files and then returns the number of changed files
sub chown_by_name {
return 0 if (MSWIN);
my ( $uid, $guid, @files ) = @_;
return chown($uid, $guid, @files );
}
# performs a chmod on a list of files and returns the number of changed files
# UGO == UG{rw}, O{r}
sub chmod_by_name {
bin/scripts/moby-s-caching.pl view on Meta::CPAN
say"done!\n\n";
say "Setting permissions for the cache ...\n";
my $dirs = $x->{utils}->get_cache_dirs();
while ( my ( $key, $value ) = each( %{$dirs} ) ) {
say "\tUpdating permissions for '$value' ...\n";
say "\t\tchown of $value: " . chown_by_name($uid, $gid, $value) . " files updated.\n";
say "\t\tchown of all files in $value: " . chown_by_name($uid, $gid, <$value/*>) . " files updated.\n";
}
say "Done!\n";
__END__
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MToken.pm view on Meta::CPAN
$self->error(sprintf("Can't prepare directory %s", $self->datadir));
return 0;
}
}
# Set permisions (GID and UID) for work directory
chown($uid, $gid, $self->datadir) if IS_ROOT && File::stat::stat($self->datadir)->uid != $uid;
}
# Prepare tempdir
$self->tempdir(File::Spec->catdir(File::Spec->tmpdir(), PROJECTNAMEL));
unless (preparedir( $self->tempdir, 0777 )) {
$self->error(sprintf("Can't prepare temp directory: %s", $self->tempdir));
return 0;
}
chown($uid, $gid, $self->tempdir) if IS_ROOT && File::stat::stat($self->tempdir)->uid != $uid;
$self->debug(sprintf("Temp dir: %s", $self->tempdir));
# Prepare log directory
if (IS_ROOT) {
my $logdir = $self->logdir;
unless (preparedir( $logdir, 0777 )) {
$self->error(sprintf("Can't prepare log directory: %s", $logdir));
return 0;
}
# Set permisions (GID and UID) for log directory
chown($uid, $gid, $logdir) if File::stat::stat($logdir)->uid != $uid;
$self->debug(sprintf("Log dir: %s", $self->logdir));
} else {
$self->logfile(File::Spec->catfile($self->tempdir(), sprintf("%s.log", PROJECTNAMEL)));
$self->debug(sprintf("Log file: %s", $self->logfile));
}
lib/MToken.pm view on Meta::CPAN
unless (preparedir($piddir)) {
$self->error(sprintf("Can't prepare pid directory: %s", $piddir));
return 0;
}
# Set permisions (GID and UID) for pid directory
chown($uid, $gid, $piddir) if IS_ROOT && File::stat::stat($piddir)->uid != $uid;
$self->debug(sprintf("Pid file: %s", $pidfile));
# Hypnotoad variables
my $upgrade = 0;
my $reload = 0;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MYDan/Agent/Grsync/V12.pm view on Meta::CPAN
MYDan::Agent::Load->new(
node => $host,
sp => $path{sp}, dp => $load,
)->run( %{$this->{agent}}, %o,
( defined $o{cc} ) ? ()
: ( 'chown' => undef, 'chmod' => undef )
);
};
my $stat = $@ ? "FAIL $@" : 'OK';
print "$host <= localhost: $stat\n";
lib/MYDan/Agent/Grsync/V12.pm view on Meta::CPAN
return -f $code && ( $code = do $code ) && ref $code eq 'CODE'
? &$code( @_ ) : \@_;
};
my @argv;
map{ push( @argv, "--$_", $o{$_} ) if defined $o{$_} }qw( chown chmod );
push( @argv, "--cc" ) if $o{cc};
my %query = (
code => 'dump',
argv => &$argv( 'dump',$load || $path{sp} , '--path', $path{dp}, @argv ),
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
Copy/Copy.pm view on Meta::CPAN
if (my $err = xs_copy($src, $dst, $mbs, $preserve)){
return;
}else{
if ($preserve){
# These are included in FSCatalogInfo
# chown $srcuid, $srcgid, $src;
# chmod ($srcmode & 07777), $src;
# utime $srcatime, $srcmtime, $src;
}
return 1;
}
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
KEY_chdir|5.003007||Viu
KEY_CHECK|5.006000||Viu
KEY_chmod|5.003007||Viu
KEY_chomp|5.003007||Viu
KEY_chop|5.003007||Viu
KEY_chown|5.003007||Viu
KEY_chr|5.003007||Viu
KEY_chroot|5.003007||Viu
KEY_close|5.003007||Viu
KEY_closedir|5.003007||Viu
KEY_cmp|5.003007||Viu
PERL_LANGINFO_H|5.027004||Viu
PERL_LAST_5_18_0_INTERP_MEMBER|5.017009||Viu
Perl_ldexp|5.021003|5.021003|n
PerlLIO_access|5.005000||Viu
PerlLIO_chmod|5.005000||Viu
PerlLIO_chown|5.005000||Viu
PerlLIO_chsize|5.005000||Viu
PerlLIO_close|5.005000||Viu
PerlLIO_dup2|5.005000||Viu
PerlLIO_dup2_cloexec|5.027008||Viu
PerlLIO_dup|5.005000||Viu
view all matches for this distribution
view release on metacpan or search on metacpan
t/10client-read.t view on Meta::CPAN
# On Debian:
# adduser -d /tmp/imaptest imaptest
# /etc/cram-md5.pwd:
# imaptest<tab>testje
# touch /var/mail/imaptest
# chown imaptest.users /var/mail/imaptest
# chmod 0664 /var/mail/imaptest # user running the tests
# .... and a running imapd
#
# On SuSE 8.2
# useradd -d /tmp/imaptest imaptest
# /etc/cram-md5.pwd:
# imaptest<tab>testje
# touch /var/spool/mail/imaptest
# chown imaptest.users /var/mail/imaptest
# chmod 0664 /var/mail/imaptest # user running the tests
# .... and a running imapd, which requires the start of xinetd and
# enabling the imap service via YaST2
use strict;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/Decency/ContentFilter/CRM114.pm view on Meta::CPAN
:good_threshold: /10.0/
:spam_threshold: /-5.0/
Now allow your decency filter user write-access to the config dir
chown -R mailuser:mailgroup /var/spool/crm114
=head2 TRAIN
Train your first mails into crm like this.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/IspMailGate/Filter/PGP.pm view on Meta::CPAN
su
mkdir ~ispmailgate/.pgp
cp ~info/.pgp/pubring.pgp ~ispmailgate/.pgp
cp ~info/.pgp/secring.pgp ~ispmailgate/.pgp
cp ~info/.pgp/randseed.bin ~ispmailgate/.pgp
chown -R ispmailgate ~ispmailgate/.pgp
chgrp -R ispmailgate ~ispmailgate/.pgp
chmod 755 ~ispmailgate/.pgp
chmod 600 ~ispmailgate/.pgp/*
If you don't have an appropriate keyring, you can instead create a new
view all matches for this distribution
view release on metacpan or search on metacpan
karmad-exim view on Meta::CPAN
}
else {
$gid = $socketgroup;
}
chown($uid, $gid, $sockaddr)
or die "chown($socketuser=$uid, $socketgroup=$gid, $sockaddr) failed";
}
elsif ($socketuser or $socketgroup) {
warn "Cannot change socket owner as non-root.";
}
karmad-exim view on Meta::CPAN
=item --socketuser
=item --socketgroup
Who to listen as; defaults to 'nobody'. The socket file
will be chowned to this user and group. You probably don't
need to set this.
=item --socketmode
Mode to chmod the socket. You probably don't need to set
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/Milter/Authentication.pm view on Meta::CPAN
open my $outf, '>', $config->{'error_log'} || die "Could not create error log: $!\n";;
close $outf;
}
if ( $user ) {
my ($login,$pass,$uid,$gid) = getpwnam($user);
chown $uid, $gid, $config->{'error_log'};
}
}
if ( exists( $config->{'chroot'} ) ) {
_warn('Chroot to ' . $config->{'chroot'});
$srvargs{'chroot'} = $config->{'chroot'};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/POP3/Folder/mbox.pm view on Meta::CPAN
unless (flock $self->{LOCK_FH}, LOCK_EX|LOCK_NB) {
unlink $lockfile;
return;
}
chmod 0600, $lockfile;
chown $self->{CLIENT_USER_ID}, $self->{MAILGROUP}, $lockfile;
my $oldfh = select $self->{LOCK_FH};
$| = 1;
select $oldfh;
$self->_lock_refresh;
# stat the file to get its size, this is checked before closing
view all matches for this distribution
view release on metacpan or search on metacpan
qmailrem/FAQ view on Meta::CPAN
4.10. How do I change which account controls an address? I set up
~alias/.qmail-www, but qmail is looking at ~www/.qmail instead.
Answer: If you do
# chown root ~www
then qmail will no longer consider www to be a user; see qmail-getpw.0.
For more precise control over address assignments, see qmail-users.0.
view all matches for this distribution
view release on metacpan or search on metacpan
if ($opt{'socket-group'} =~ /\D/) {
$opt{'socket-group'} = getgrnam($opt{'socket-group'}) || die "Group: $opt{'socket-group'} not found\n";
}
chown $opt{'socket-user'}, $opt{'socket-group'}, $opt{socket} or die "chown call failed on $opt{socket}: $!\n";
}
if (defined $opt{'socket-perms'}) {
chmod oct($opt{'socket-perms'}), $opt{socket} or die "Cannot fixup perms on $opt{socket}: $!\n";
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
print("spfd (PID $$): Listening on UNIX socket '$socket_path'.\n");
#$0 = "spfd listening on UNIX socket $socket_path";
$socket_user = normalize_uid($socket_user);
$socket_group = normalize_gid($socket_group);
chown($socket_user, $socket_group, $socket_path)
or die("Unable to chown($socket_user, $socket_group) socket '$socket_path'")
if $socket_user != -1 or $socket_path != -1;
chmod(oct($socket_perms), $socket_path)
or die("Unable to chmod($socket_perms) socket '$socket_path': $!")
if defined($socket_perms);
view all matches for this distribution
view release on metacpan or search on metacpan
bin/salsaconfig view on Meta::CPAN
return(1) if(-d $dir);
my $answer = &get_answer("Create the directory \"$dir\"? [y/N]: ");
if($answer eq "Y" or $answer eq "y") {
make_dir_rec($dir);
-d $dir or return(0);
chown($userid, $groupid, $dir);
}
return(1);
}
sub get_answer {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/SpamAssassin/Contrib/Plugin/IPFilter.pm view on Meta::CPAN
if(!-e $Logfile){
lock($Logfile);
fatal('[c_logfile] Could not create log file '.$Logfile) if(!open(IPFILTERLOGSTATS, '+>>'.$Logfile));
close(IPFILTERLOGSTATS);
chmod(0600, $Logfile);
chown(int($1),-1, $Logfile) if ($_[0]->{username} && getpwnam($_[0]->{username})=~/^([0-9]+)$/);
}
}
sub c_ipfilter_update {
lib/Mail/SpamAssassin/Contrib/Plugin/IPFilter.pm view on Meta::CPAN
$self->{conf}->{log_dir} = $self->{conf}->{log_dir}.'/'.$self->{conf}->{filter_name} if(-d $self->{conf}->{log_dir}.'/'.$self->{conf}->{filter_name} && -w $self->{conf}->{log_dir}.'/'.$self->{conf}->{filter_name});
}
fatal('Could not find log directory '.$self->{conf}->{log_dir}) if(!-d $self->{conf}->{log_dir} || !-w $self->{conf}->{log_dir});
c_logfile($self->{conf});
chown(int($1),-1, $self->{conf}->{log_dir}.'/.cache.lock' ) if ((defined fileno(IPFILTERCACHELOCK) || open(IPFILTERCACHELOCK, '+>>'.$self->{conf}->{log_dir}.'/.cache.lock' )) && $self->{conf}->{username} && getpwnam($self->{conf}->{username})=~/^([0...
map { ($_ =~ /(?:(?:\_bin)|(?:\_dir)|(?:\_path))$/) && (!-e $self->{conf}->{$_} && !-d $self->{conf}->{$_}) && ($self->{conf}->{$_}='')} (keys %{$self->{conf}});
$v = sub {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/SpamAssassin.pm view on Meta::CPAN
defined $nread or die "error reading $defprefs: $!";
undef $inbuf;
close OUT or die "error closing $fname: $!";
close IN or die "error closing $defprefs: $!";
if (($< == 0) && ($> == 0) && defined($user)) { # chown it
my ($uid,$gid) = (getpwnam(untaint_var($user)))[2,3];
unless (chown($uid, $gid, $fname)) {
warn "config: couldn't chown $fname to $uid:$gid for $user: $!\n";
}
}
warn "config: created user preferences file: $fname\n";
return(1);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mail/SpamCannibal/ScriptSupport.pm view on Meta::CPAN
opendir(ENVF,$default->{dbhome}) || die "could not open DB $default->{dbhome} directory\n";
my @env = grep(/^__/,readdir(ENVF));
closedir ENVF;
foreach(@env) {
chmod $mode, $default->{dbhome} .'/'. $_;
chown $uid, $gid, $default->{dbhome} .'/'. $_;
}
# it's now ok to restart jobs
unlink $default->{dbhome} .'/blockedBYwatcher'; # remove the job block
}
view all matches for this distribution
view release on metacpan or search on metacpan
bin/toaster_audit.pl view on Meta::CPAN
print ' server.errorlog = "/var/log/http/error.log"';
};
if ( ! -d "/var/log/http" ) {
print " mkdir /var/log/http\n";
print " chown www:www /var/log/http\n";
$changes++;
};
my $mess = "Consider making the changes shown above to $http_conf\n";
_changes($changes, $mess);
view all matches for this distribution
view release on metacpan or search on metacpan
libmdq/install-sh view on Meta::CPAN
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
libmdq/install-sh view on Meta::CPAN
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
libmdq/install-sh view on Meta::CPAN
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
libmdq/install-sh view on Meta::CPAN
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
view all matches for this distribution