Path: utzoo!utgpu!watserv1!watdragon!lion!ccplumb From: ccplumb@lion.waterloo.edu (Colin Plumb) Newsgroups: comp.sys.amiga Subject: Re: Help needed on AmigaDos Locks Keywords: Lock,Help,AmigaDos Message-ID: <19674@watdragon.waterloo.edu> Date: 10 Jan 90 18:29:04 GMT References: <159@spodv4.UUCP> <2754@jolnet.ORPK.IL.US> <7857@nigel.udel.EDU> Sender: daemon@watdragon.waterloo.edu Reply-To: ccplumb@lion.waterloo.edu (Colin Plumb) Organization: U. of Waterloo, Ontario Lines: 9 There's no need to resort to such nasty tricks to open a file given a lock. The Open packet, if you want to delve to that level, takes a lock and a name relative to that lock, as arguments. If you don't want to, cd to the lock (yes, you *can* cd to a file), open "", and cd back. WorkBench does this all the time, so any file system that doesn't support cd'ing to a file will break very fast indeed. -- -Colin