MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //proc/self/root/scripts.20110531.215904.25158/x
#!/bin/sh
# cpanel4 - scripts        Copyright(c) 1997-2002 cPanel, Inc..
#                                 All rights Reserved.
# copyright@cpanel.net      http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited
# This is a shell archive (produced by GNU sharutils 4.2.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2000-11-04 14:30 EST by <root@server.webbserv.net>.
# Source directory was `/root'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    262 -rw-r--r-- /usr/sbin/named-wrapper.c
#
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    set `$dir/gettext --version 2>&1`
    if test "$3" = GNU
    then
      gettext_dir=$dir
    fi
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 -a -f $$.touch; then
  shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then
  shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a -f $$.touch; then
  shar_touch='touch -am $3$4$5$6$2 "$8"'
else
  shar_touch=:
  echo
  $echo 'WARNING: not restoring timestamps.  Consider getting and'
  $echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
#
if mkdir _sh30784; then
  $echo 'x -' 'creating lock directory'
else
  $echo 'failed to create lock directory'
  exit 1
fi
# ============= /usr/sbin/named-wrapper.c ==============
if test ! -d '/usr'; then
  $echo 'x -' 'creating directory' '/usr'
  mkdir '/usr'
fi
if test ! -d '/usr/sbin'; then
  $echo 'x -' 'creating directory' '/usr/sbin'
  mkdir '/usr/sbin'
fi
if test -f '/usr/sbin/named-wrapper.c' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING '/usr/sbin/named-wrapper.c' '(file already exists)'
else
  $echo 'x -' extracting '/usr/sbin/named-wrapper.c' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > '/usr/sbin/named-wrapper.c' &&
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
X
int main (int main, char *argv[]) {
X
X	struct rlimit xl;
X	getrlimit(RLIMIT_NOFILE,&xl);
X	xl.rlim_max = sysconf(_SC_OPEN_MAX);
X
X	setrlimit(RLIMIT_NOFILE,&xl);
X
X	execvp("/usr/sbin/named",argv);
}
SHAR_EOF
  (set 20 00 11 04 14 30 16 '/usr/sbin/named-wrapper.c'; eval "$shar_touch") &&
  chmod 0644 '/usr/sbin/named-wrapper.c' ||
  $echo 'restore of' '/usr/sbin/named-wrapper.c' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo '/usr/sbin/named-wrapper.c:' 'MD5 check failed'
54a0be68f34d90d3a79a09808913ced5  /usr/sbin/named-wrapper.c
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '/usr/sbin/named-wrapper.c'`"
    test 262 -eq "$shar_count" ||
    $echo '/usr/sbin/named-wrapper.c:' 'original size' '262,' 'current size' "$shar_count!"
  fi
fi
rm -fr _sh30784
exit 0