This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linuxconf complexity


"Jack Howarth" <howarth@bromo.med.uc.edu> writes:

>    I thought everyone interested in this might like to read the explanation
> Andrew Morgan who maintains pam gave me as to the complexity we are dealing
> with in linuxconf with password authentication through pam. He said...

According to the description the appended test should be equivalent.
And it works perfectly for me with a glibc around 2.0.99.  Could you
give it a try?

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2c).
# 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 1998-10-31 16:14 PST by <drepper@myware>.
# Source directory was `/home/drepper/t'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    214 -rw-r--r-- Makefile
#    163 -rw-r--r-- m.c
#    230 -rw-r--r-- n.c
#    276 -rw-r--r-- o.c
#     82 -rw-r--r-- p.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 (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    shar_n= shar_c='
'
  else
    shar_n=-n shar_c=
  fi
else
  shar_n= shar_c='\c'
fi
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
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 1231235999 $$.touch
#
$echo $shar_n 'x -' 'lock directory' "\`_sh10340': "$shar_c
if mkdir _sh10340; then
  $echo 'created'
else
  $echo 'failed to create'
  exit 1
fi
# ============= Makefile ==============
if test -f 'Makefile' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'Makefile' '(file already exists)'
else
  $echo 'x -' extracting 'Makefile' '(gzipped)'
  sed 's/^X//' << 'SHAR_EOF' | uudecode &&
begin 600 _sh10340/gzi
M'XL(`!JG.S8"`TO,R;%2R%7(TRO.5\@'$05`@HLK%RBHE\_%F9Z<K*";KZ#B
MH*`2IZ";DY+#Q057:J6@"B63H0J+,Q*+4E.@&G33`CR=%50TG-U\'-V#-1$&
M%(!U%1"KBXM++\##WR_22B$Y)S4QCPM,6G%Q%N4"%1<!W0YT*+K[`6!B3:+6
#````
`
end
SHAR_EOF
  $echo 'gunzipping file' 'Makefile' &&
  gzip -d < _sh10340/gzi > 'Makefile' &&
  $shar_touch -am 1031161198 'Makefile' &&
  chmod 0644 'Makefile' ||
  $echo 'restore of' 'Makefile' 'failed'
  if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'Makefile:' 'MD5 check failed'
a7442855818eb0bcdc41b08e6cdfcfd0  Makefile
SHAR_EOF
  else
    shar_count="`LC_ALL=C wc -c < 'Makefile'`"
    test 214 -eq "$shar_count" ||
    $echo 'Makefile:' 'original size' '214,' 'current size' "$shar_count!"
  fi
fi
# ============= m.c ==============
if test -f 'm.c' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'm.c' '(file already exists)'
else
  $echo 'x -' extracting 'm.c' '(gzipped)'
  sed 's/^X//' << 'SHAR_EOF' | uudecode &&
begin 600 _sh10340/gzi
M'XL(`+JF.S8"`S6-L0K",!B$]_\ICK@DI43WJB`X=I(NNH@T"0VT?T+3""*^
MNVU%N.'@OKO;>&[[;"SVIG<MZ^Y(Y'FBX>%9*GH3\`S>H#`XP/0A6H84>LLZ
M!5'BTM3G>WVZ757U)V7AHH)<O%H[Z35`FA+"A2!6+N8IS2M-YQ-F+5^_P$7(
2U8QVRB-C5]&'OO\3W`6C````
`
end
SHAR_EOF
  $echo 'gunzipping file' 'm.c' &&
  gzip -d < _sh10340/gzi > 'm.c' &&
  $shar_touch -am 1031160998 'm.c' &&
  chmod 0644 'm.c' ||
  $echo 'restore of' 'm.c' 'failed'
  if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'm.c:' 'MD5 check failed'
09bebfe6bffa028f3a2f5d8b42085bb7  m.c
SHAR_EOF
  else
    shar_count="`LC_ALL=C wc -c < 'm.c'`"
    test 163 -eq "$shar_count" ||
    $echo 'm.c:' 'original size' '163,' 'current size' "$shar_count!"
  fi
fi
# ============= n.c ==============
if test -f 'n.c' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'n.c' '(file already exists)'
else
  $echo 'x -' extracting 'n.c' '(gzipped)'
  sed 's/^X//' << 'SHAR_EOF' | uudecode &&
begin 600 _sh10340/gzi
M'XL(`.&F.S8"`S5.VPK",`Q][U>$^M*.,3_`"RB"+V4#F?@HNK:L4-?2.D'F
M_MVLTQ!"3G+.21:F:VPO%:REU4U7M%M"7LY(HIT#QLE``"8,F80-2.N\ZH#1
M8NF*Z&@.IUH<KD=1[7<"/C,JJPM?H<SWSXC4NC41,-&0IKG1P-!L`^59"(Z#
M/U5:%8(+>#;QE(TJ;8=4?W^P3'O.II:GA^+[@<H<Z/T69O\IM$>7&8QD)%];
'XD$=Y@```#;Q
`
end
SHAR_EOF
  $echo 'gunzipping file' 'n.c' &&
  gzip -d < _sh10340/gzi > 'n.c' &&
  $shar_touch -am 1031161098 'n.c' &&
  chmod 0644 'n.c' ||
  $echo 'restore of' 'n.c' 'failed'
  if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'n.c:' 'MD5 check failed'
227ac2ea8a3f9d5e5fe99be24f1a6c0b  n.c
SHAR_EOF
  else
    shar_count="`LC_ALL=C wc -c < 'n.c'`"
    test 230 -eq "$shar_count" ||
    $echo 'n.c:' 'original size' '230,' 'current size' "$shar_count!"
  fi
fi
# ============= o.c ==============
if test -f 'o.c' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'o.c' '(file already exists)'
else
  $echo 'x -' extracting 'o.c' '(gzipped)'
  sed 's/^X//' << 'SHAR_EOF' | uudecode &&
begin 600 _sh10340/gzi
M'XL(`..E.S8"`UU/00K",!"\YQ5+O"12Z@.T@N"Q>)!ZT(NT34(+L0F-%=O2
MO[M)*X@AA,W.[,S.JFY*W0D).Z%5V<35GI"7J04I\A:8KS@9"8"O8"VV6-KN
MZ8#1K*H=X$4BY;XO(`&AC94-HO'&QL[0",Y9>KRGA]LU<&H%#'D)G"YIRK'Q
ME1-:MJU!2QYX4CL9T#&\BS];*\N7K8*9ZQ\X&@$M\F%>PA]E46;^3&1:\KS[
48>A_$_W%"+C7F,@'N,Y>OA0!``"7
`
end
SHAR_EOF
  $echo 'gunzipping file' 'o.c' &&
  gzip -d < _sh10340/gzi > 'o.c' &&
  $shar_touch -am 1031160598 'o.c' &&
  chmod 0644 'o.c' ||
  $echo 'restore of' 'o.c' 'failed'
  if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'o.c:' 'MD5 check failed'
cb06554da9419beb9927699087f358d2  o.c
SHAR_EOF
  else
    shar_count="`LC_ALL=C wc -c < 'o.c'`"
    test 276 -eq "$shar_count" ||
    $echo 'o.c:' 'original size' '276,' 'current size' "$shar_count!"
  fi
fi
# ============= p.c ==============
if test -f 'p.c' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'p.c' '(file already exists)'
else
  $echo 'x -' extracting 'p.c' '(gzipped)'
  sed 's/^X//' << 'SHAR_EOF' | uudecode &&
begin 600 _sh10340/gzi
M'XL(``VF.S8"`TNM*$DMRE,HR\],4:BHK*JJ5-``L36MN4`45U)B%52`JYI+
D0:&@M*1804,I)".S6`&(@+)*0)4*,)U`=BT7``N8H[U2````
`
end
SHAR_EOF
  $echo 'gunzipping file' 'p.c' &&
  gzip -d < _sh10340/gzi > 'p.c' &&
  $shar_touch -am 1031160698 'p.c' &&
  chmod 0644 'p.c' ||
  $echo 'restore of' 'p.c' 'failed'
  if ( md5sum --help </dev/null 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version </dev/null 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'p.c:' 'MD5 check failed'
2872f5458a93f64446a8fad1b7ec0111  p.c
SHAR_EOF
  else
    shar_count="`LC_ALL=C wc -c < 'p.c'`"
    test 82 -eq "$shar_count" ||
    $echo 'p.c:' 'original size' '82,' 'current size' "$shar_count!"
  fi
fi
$echo $shar_n 'x -' 'lock directory' "\`_sh10340': " $shar_c
if rm -fr _sh10340; then
  $echo 'removed'
else
  $echo 'failed to remove'
fi
exit 0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]