0
Qˆ
ƒÎ¿ÒÁÓ W Q
Index of /1337_DATA/alfasymlink/root/usr/lib/dracut/modules.d/01fips
Index of /1337_DATA/alfasymlink/root/usr/lib/dracut/modules.d/01fips
# Sˆl–ßi~”Ò~êqAãLܪbÑ¿Ö
„/6ÏÂÔ 6 S#!/usr/local/cpanel/3rdparty/bin/perl
# Copyright 2026 WebPros International, LLC
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.
package scripts::comet_pkgacct_stream_guard;
use cPstrict;
=encoding utf-8
=head1 NAME
comet_pkgacct_stream_guard - fail a Comet backup rather than vault a corrupted
C stream (CPANEL-55666)
=head1 SYNOPSIS
comet_pkgacct_stream_guard [ pkgacct option ... ]
=head1 DESCRIPTION
The legacy C and C Protected
Items are C sources: the Comet C agent forks the
item's C and streams the command's STDOUT straight into the
Storage Vault. Under C<--stdout-archive>, B.
That makes any core code path which prints to STDOUT during a C run a
silent data-loss hazard, and there is one:
C hardcodes C<< ERRORS_TO_STDOUT => 1 >>
(Mysql.pm:673) and C raw-prints its error text to STDOUT
(DBAdmin.pm:201). A single stale C entry therefore PREPENDS a few hundred
bytes of human-readable error text to the gzip stream. C still exits
B<0> with an empty STDERR, so the agent records a perfectly successful backup of
an archive that C cannot open and C cannot extract. The core
half of that is a separate case; this guard is the plugin's half.
C forks C with its STDOUT on a pipe and inspects the FIRST TWO
BYTES (after any leading blank bytes) before anything reaches our own STDOUT:
=over 4
=item * B — up to C<$MAX_LEADING_WHITESPACE_BYTES> of
C<\n>, C<\r>, space and tab ahead of the gzip magic are skipped and NOT written
(CPANEL-57691: core C prints blank lines before the archive for accounts
with Mailman lists). How many were skipped is logged to
C