head	1.6;
access;
symbols
	Real-Release-0-59:1.6
	Release-0-59:1.6
	pniam_change:1.6.0.2
	Real-Release-0-58:1.6
	Release-0-58:1.6
	broken-signals-0-57:1.4.0.2
	Release-0-56-last:1.3
	Release-0-57:1.4;
locks; strict;
comment	@# @;


1.6
date	98.06.13.07.49.55;	author saw;	state Rel;
branches;
next	1.5;

1.5
date	98.06.13.06.39.32;	author saw;	state Exp;
branches;
next	1.4;

1.4
date	98.06.12.17.11.04;	author saw;	state Exp;
branches;
next	1.3;

1.3
date	97.02.24.06.10.46;	author morgan;	state Exp;
branches;
next	1.2;

1.2
date	97.01.29.03.48.16;	author morgan;	state Exp;
branches;
next	1.1;

1.1
date	97.01.29.03.41.34;	author morgan;	state Exp;
branches;
next	;


desc
@@


1.6
log
@  - `make release' was rewritten.
  - The traces of RCS tree were eliminated.
@
text
@#!/bin/bash
#
# $Id: md5itall,v 1.5 1998/06/13 06:39:32 saw Exp $
#
# Created by Andrew G. Morgan (morgan@@linux.kernel.org)
#

MD5SUM=md5sum
CHKFILE1=./.md5sum
CHKFILE2=./.md5sum-new

which "${MD5SUM}" > /dev/null
result="${?}"

if [ -x "${MD5SUM}" ] || [ "${result}" -eq 0 ]; then
	rm -f "${CHKFILE2}"
	echo -n "computing md5 checksums."
	for x in `cat ../.filelist` ; do
		echo -n "."
		(cd ../.. ; "${MD5SUM}" "${x}") >> "${CHKFILE2}"
	done
	echo
	if [ -f "${CHKFILE1}" ]; then
		echo "\
---> Note, since the last \`make check', the following file(s) have changed:
==========================================================================="
		diff "${CHKFILE1}" "${CHKFILE2}"
		if [ "${?}" -eq 0 ]; then
			echo "\
--------------------------- Nothing has changed ---------------------------"
		fi
		echo "\
==========================================================================="
	fi
	rm -f "${CHKFILE1}"
	mv "${CHKFILE2}" "${CHKFILE1}"
	chmod 400 "${CHKFILE1}"
else
	echo "\
Please install \`${MD5SUM}'.
[It is used to check the integrity of this distribution]
---> no check done."
fi
@


1.5
log
@  - utmp_{open,close}_session() were modified to fail gracefully.
  - pam_get_user() abuse was removed from utmp_open_session.
  - wtmp file locking was rewritten.
  - Unnecessary malloc()s were eliminated in utmp_{open,close}_session().
  - More accurate struct utmp clearing was implemented. Glibc had introduced
    additional fields and could do it further.
  - utmp search was rewritten to be more compatible with libc.
  - Protection against unexpected SIGPIPEs was implemented.
  - TODO file was revived.
  - RCS logs were removed.
@
text
@d3 1
a3 1
# $Id: md5itall,v 1.4 1998/06/12 17:11:04 saw Exp $
d12 2
a13 2
which $MD5SUM > /dev/null
result=$?
d15 2
a16 2
if [ -x "$MD5SUM" ] || [ $result -eq 0 ]; then
	rm -f $CHKFILE2
d20 1
a20 1
		(cd ../.. ; $MD5SUM $x) >> $CHKFILE2
d23 1
a23 1
	if [ -f "$CHKFILE1" ]; then
d27 2
a28 2
		diff $CHKFILE1 $CHKFILE2
		if [ $? -eq 0 ]; then
d35 3
a37 3
	rm -f "$CHKFILE1"
	mv "$CHKFILE2" "$CHKFILE1"
	chmod 400 "$CHKFILE1"
d40 1
a40 1
Please install \`$MD5SUM'.
@


1.4
log
@A code cleanup:
  - _BSD_SOURCE was defined. We had already used several non-POSIX features
    like fchown() and setgroups(). The program can't be compiled
    in a strictly POSIX environment.
  - SU_STRICTLY_POSIX condition was removed.
  - Variable 'login' was renamed to 'is_login' in su.c.
  - Some my earlier comment were rewritten.
  - Return value checks were added to an additional calls.
  - The stdin ownership change was allowed only if is_terminal and is_login
    for security reasons.
  - A major restructurization of the code in su.c as it had been done
    by Andrew in sshd.
  - More detailed error reporting was implemented.
  - A few '(void)' were added to calls like fprintf().
  - More correct handling of a child exit in wait_for_child() was implemented.
  - Changes enabling terminal ownership control for 'su - -c ...'
    were undone.
  - Improper call of pwdb_error was fixed.
  - A new documentation file with the description of tty session and ownership
    control was added.
  - Andrew's email address was fixed in several places.
  - Ancient files were moved to 'Historic' directory.
  - Something else what I've forgotten.
@
text
@d3 1
a3 12
# $Id: md5itall,v 1.3 1997/02/24 06:10:46 morgan Exp $
#
# $Log: md5itall,v $
# Revision 1.3  1997/02/24 06:10:46  morgan
# update for .54
#
# Revision 1.2  1997/01/29 03:48:16  morgan
# fixed symbolic link stuff
#
# Revision 1.1  1997/01/29 03:41:34  morgan
# Initial revision
#
@


1.3
log
@update for .54
@
text
@d3 1
a3 1
# $Id: md5itall,v 1.2 1997/01/29 03:48:16 morgan Exp morgan $
d6 3
d16 1
a16 1
# Created by Andrew G. Morgan (morgan@@physics.ucla.edu)
@


1.2
log
@fixed symbolic link stuff
@
text
@d3 1
a3 1
# $Id: md5itall,v 1.1 1997/01/29 03:41:34 morgan Exp morgan $
d6 3
d27 2
a28 4
		if [ ! -L ../../$x ]; then
			(cd ../.. ; $MD5SUM $x) >> $CHKFILE2
			echo -n "."
		fi
@


1.1
log
@Initial revision
@
text
@d3 5
a7 1
# $Id$
a8 1
# $Log$
d24 1
a24 1
		if [ ! -l $x ]; then
@
