[comp.sources.amiga] v91i098: patch3b - patch to MSH: 1.30, Part01/01

amiga-request@ab20.larc.nasa.gov (Amiga Sources/Binaries Moderator) (05/08/91)

Submitted-by: rhialto@cs.kun.nl
Posting-number: Volume 91, Issue 098
Archive-name: devices/msh-1.30/patch3b/part01

This is a small (source-only) patch to MSH: 1.30 (aka release 1 patch
3). Let's call it "Patch 3b". For now, I only intend to release this
patch and not a new binary, for several reasons, including 1. a new
binary is ridiculously large compared to the patch (and might even
change only a single byte), and 2. my own private version has evolved a
bit since 1.30 and I don't want to maintain separate source trees.

#!/bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of archive 1 (of 1)."
# Contents:  README patch3b
# Wrapped by tadguy@ab20 on Tue May  7 20:20:01 1991
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'README' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'README'\"
else
echo shar: Extracting \"'README'\" \(718 characters\)
sed "s/^X//" >'README' <<'END_OF_FILE'
XMSH: Patch 3b to release 1.
X
X/*-
X * This code is (C) Copyright 1991 by Olaf Seibert. All rights reserved. May
X * not be used or copied without a licence.
X-*/
X
XThis is a small (source-only) patch to MSH: 1.30 (aka release 1 patch
X3). Let's call it "Patch 3b". For now, I only intend to release this
Xpatch and not a new binary, for several reasons, including 1. a new
Xbinary is ridiculously large compared to the patch (and might even
Xchange only a single byte), and 2. my own private version has evolved a
Xbit since 1.30 and I don't want to maintain separate source trees.
X
X--
XOlaf 'Rhialto' Seibert                               rhialto@cs.kun.nl
XHow can you be so stupid if you're identical to me? -Robert Silverberg
END_OF_FILE
if test 718 -ne `wc -c <'README'`; then
    echo shar: \"'README'\" unpacked with wrong size!
fi
# end of 'README'
fi
if test -f 'patch3b' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'patch3b'\"
else
echo shar: Extracting \"'patch3b'\" \(1523 characters\)
sed "s/^X//" >'patch3b' <<'END_OF_FILE'
X/*-
X * This code is (C) Copyright 1991 by Olaf Seibert. All rights reserved. May
X * not be used or copied without a licence.
X-*/
X
X*** hanlock.c.old	Thu Apr 18 16:20:54 1991
X--- hanlock.c	Thu Apr 18 16:24:10 1991
X***************
X*** 651,667 ****
X  
X      lock = MSLock(parentdir, name, EXCLUSIVE_LOCK);
X      if (lock) {
X! 	/* Leave SYSTEM bit as-is */
X! 	lock->msfl_Msd.msd_Attributes &= ATTR_SYSTEM;
X  	/* write or delete protected -> READONLY */
X  	if (mask & (FIBF_WRITE|FIBF_DELETE))
X! 	    lock->msfl_Msd.msd_Attributes |= (ATTR_READONLY);
X  	/* hidden -> hidden */
X  	if (mask & FIBF_HIDDEN)
X! 	    lock->msfl_Msd.msd_Attributes |= (ATTR_HIDDEN);
X  	/* archived=0 (default) -> archived=1 (default) */
X  	if (!(mask & FIBF_ARCHIVE))
X! 	    lock->msfl_Msd.msd_Attributes |= (ATTR_ARCHIVED);
X  	WriteFileLock(lock);
X  	MSUnLock(lock);
X  	return TRUE;
X--- 651,668 ----
X  
X      lock = MSLock(parentdir, name, EXCLUSIVE_LOCK);
X      if (lock) {
X! 	/* Leave other bits as they are */
X! 	lock->msfl_Msd.msd_Attributes &=
X! 	    ~(ATTR_READONLY | ATTR_HIDDEN | ATTR_ARCHIVED);
X  	/* write or delete protected -> READONLY */
X  	if (mask & (FIBF_WRITE|FIBF_DELETE))
X! 	    lock->msfl_Msd.msd_Attributes |= ATTR_READONLY;
X  	/* hidden -> hidden */
X  	if (mask & FIBF_HIDDEN)
X! 	    lock->msfl_Msd.msd_Attributes |= ATTR_HIDDEN;
X  	/* archived=0 (default) -> archived=1 (default) */
X  	if (!(mask & FIBF_ARCHIVE))
X! 	    lock->msfl_Msd.msd_Attributes |= ATTR_ARCHIVED;
X  	WriteFileLock(lock);
X  	MSUnLock(lock);
X  	return TRUE;
X
END_OF_FILE
if test 1523 -ne `wc -c <'patch3b'`; then
    echo shar: \"'patch3b'\" unpacked with wrong size!
fi
# end of 'patch3b'
fi
echo shar: End of archive 1 \(of 1\).
cp /dev/null ark1isdone
MISSING=""
for I in 1 ; do
    if test ! -f ark${I}isdone ; then
	MISSING="${MISSING} ${I}"
    fi
done
if test "${MISSING}" = "" ; then
    echo You have the archive.
    rm -f ark[1-9]isdone
else
    echo You still need to unpack the following archives:
    echo "        " ${MISSING}
fi
##  End of shell archive.
exit 0
-- 
Mail submissions (sources or binaries) to <amiga@uunet.uu.net>.
Mail comments to the moderator at <amiga-request@uunet.uu.net>.
Post requests for sources, and general discussion to comp.sys.amiga.misc.