MAJOR=10
MINOR=127
DEVNAME=vga_arbiter
     �¿ÇÆ      File not found.
  "   ˆl–Ü4ý(© ~”ú€~àAp S�ÿÅƒ@ÈÇ y    Copyright 2006 Dan-Haim. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.
3. Neither the name of Dan Haim nor the names of his contributors may be used
   to endorse or promote products derived from this software without specific
   prior written permission.
   
THIS SOFTWARE IS PROVIDED BY DAN HAIM "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL DAN HAIM OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMANGE.
  "   ˆl–Ðz¾””ÔD¨ 	ÅåÀ»pBS�ÿÆƒh¹ÉÈ      device:07
      ˆÇÆ0a–Ðz¾””ÔD¨ 	ÅåÀ»pL©‹FÿÉ  	   ˆÈÇ0¾É  	   ˆÈÇ0¾É  "   ˆl–Ðz¾”Jj"TÒ�zàœ¸”Å£ÈƒdM=¿Ê °    #!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/linksubemailtomainacct          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

package scripts::linksubemailtomainacct;

use strict;
use Getopt::Long                 ();
use Cpanel::PwCache              ();
use Cpanel::PwCache::Helpers     ();
use Cpanel::PwCache::Build       ();
use Cpanel::LoginDefs            ();
use Cpanel::Config::LoadConfig   ();
use Cpanel::Email::Maildir::Link ();

if ( !caller() ) {
    $| = 1;

    # The -force option is not used, but we'll retain it due to
    # historical precedent, and in case it might be implemented
    # some day.
    my $force        = 0;
    my $quiet        = 0;
    my $exitondelete = 1;
    my $delete       = "";    # delete old symlinks

    my $opt_parse_result = Getopt::Long::GetOptions(
        "force"          => \$force,
        "quiet"          => \$quiet,
        "exitondelete=n" => \$exitondelete,
        "delete=s"       => \$delete,         # don't create new symlinks, just delete old ones for given domain
    );

    usage() unless $opt_parse_result && @ARGV <= 1;    # note ok if $ARGV == 0

    my $convertuser = $ARGV[0];

    __PACKAGE__->script( $convertuser, 'force' => $force, 'quiet' => $quiet, 'delete' => $delete );
}

sub script {
    my ( $class, $convertuser, %OPTS ) = @_;

    my $force  = $OPTS{'force'};
    my $quiet  = $OPTS{'quiet'};
    my $delete = $OPTS{'delete'};
    print "cPanel Email Linker v3.0\n" if !$quiet;

    my $pwcache_ref;
    if ($convertuser) {
        $pwcache_ref = [ [ Cpanel::PwCache::getpwnam($convertuser) ] ];
    }
    else {
        Cpanel::PwCache::Helpers::no_uid_cache();    #uid cache only needed if we are going to make lots of getpwuid calls
        Cpanel::PwCache::Build::init_passwdless_pwcache();
        $pwcache_ref = Cpanel::PwCache::Build::fetch_pwcache();
    }

    my $current_format = scalar Cpanel::Config::LoadConfig::loadConfig( "/etc/mailbox_formats", undef, ": " );
    foreach my $pw ( @{$pwcache_ref} ) {
        my ( $user, $uid, $gid, $homedir ) = ( @{$pw} )[ 0, 2, 3, 7 ];
        ($homedir) = $homedir =~ /(.*)/;             # Untain