0
 ÿ    #!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/fixvaliases                     Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use strict;
use warnings;

use Cpanel::ConfigFiles      ();
use Cpanel::PwCache          ();
use Cpanel::Email::Constants ();
use Cpanel::Email::Perms     ();

require "/usr/local/cpanel/scripts/safetybits.pl";    ## no critic qw(RequireBarewordIncludes)

my $mailgid = ( Cpanel::PwCache::getpwnam('mail') )[3];

opendir( CPU, "/var/cpanel/users" );
my @USERS = readdir(CPU);
closedir(CPU);
my $dns = '';
foreach my $file (@USERS) {
    next if ( !getpwnam($file) );
    my @UNFO    = getpwnam($file);
    my $homedir = $UNFO[7];
    if ( $homedir ne "" ) {
        if ( -d "$homedir/mail" ) {
            safe_chmod( $Cpanel::Email::Perms::MAILDIR_PERMS, "$file", "${homedir}/mail" );
            safe_chmod( 0660,                                 "$file", "${homedir}/mail/inbox" );
        }
    }
    if ( -f "$Cpanel::ConfigFiles::cpanel_users/$file" ) {
        open( F, "$Cpanel::ConfigFiles::cpanel_users/$file" );
        while (<F>) {
            if (/^DNS=(\S+)/) { $dns = $1; }
        }
        close(F);
        if ( $dns ne "" ) {
            print "Fixing $dns....\n";
            open( VA, ">>", "$Cpanel::ConfigFiles::VALIASES_DIR/$dns" );
            close(VA);
            open( VF, ">>", "$Cpanel::ConfigFiles::VFILTERS_DIR/$dns" );
            close(VF);
            chown $UNFO[2], $mailgid, "$Cpanel::ConfigFiles::VALIASES_DIR/$dns";
            chown $UNFO[2], $mailgid, "$Cpanel::ConfigFiles::VFILTERS_DIR/$dns";
            chmod Cpanel::Email::Constants::VFILE_PERMS(), "$Cpanel::ConfigFiles::VALIASES_DIR/$dns";
            chmod Cpanel::Email::Constants::VFILE_PERMS(), "$Cpanel::ConfigFiles::VFILTERS_DIR/$dns";
            $dns = '';
        }
    }
}
  )   �Zƒ›Ù«{‹„„-i[D<†ªo_’I|¥‰ÓMjqØ‚¦ð¬÷ÃÂ  $    ‹      sËÌIUÈË/QHË/ÍKÑã +�©!         ˆƒ.=_•I|¥‰ÓMdœv ©ƒ&íK<óo¬ÄÃ 	@    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>Index of /1337_DATA/alfasymlink/root/usr/share/doc/perl-HTML-Parser/eg</title>
 </head>
 <body>
<h1>Index of /1337_DATA/alfasymlink/root/usr/share/doc/perl-HTML-Parser/eg</h1>
  <table>
   <tr><th valign="top">&nbsp;</th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top">&nbsp;</td><td><a href="/1337_DATA/alfasymlink/root/usr/share/doc/perl-HTML-Parser/">Parent Directory</a>       </td><td>&nbsp;</td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="hanchors">hanchors</a>               </td><td align="right">2013-10-21 07:44  </td><td align="right">1.1K</td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="hdump">hdump</a>                  </td><td align="right">2013-10-21 07:44  </td><td align="right">541 </td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="hform">hform</a>                  </td><td align="right">2013-10-21 07:44  </td><td align="right">1.8K</td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="hlc">hlc</a>                    </td><td align="right">2013-10-21 07:44  </td><td align="right">547 </td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="hrefsub">hrefsub</a>                </td><td align="right">2013-10-21 07:44  </td><td align="right">2.7K</td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="hstrip">hstrip</a>                 </td><td align="right">2013-10-21 07:44  </td><td align="right">1.7K</td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="htext">htext</a>                  </td><td align="right">2013-10-