Here is another patch to uemacs.4.0a, MicroEmacs 4.0. It allows multiple users to create locks in the same directory at the same time. Without the patch, the first user to edit a file in a directory creates an _xlk directory that only he can add files to, preventing other users from creating locks. The comments are self-explanatory, and may be removed if you wish. Bruce Momjian (root@candle.pha.pa.us) Sun Apr 20 21:56:00 EDT 1997 --------------------------------------------------------------------------- *** src/dolock.c.orig Tue Apr 8 19:06:42 1997 --- src/dolock.c Tue Apr 8 22:13:21 1997 *************** *** 286,291 **** --- 286,302 ---- } return(result); } + #if MSDOS == 0 && WINNT == 0 && OS2 == 0 + else { + /* + Make lock directory rwx for everyone, with sticky bit set. + This allows anyone to add locks, but only owner can delete them. + This is typically used in /tmp. + A separate chmod is needed because mkdir() does not honor sticky. + */ + chmod(lockpath,0777 | S_ISTXT); + } + #endif } /* check for the existance of this lockfile */ -- Bruce Momjian | 830 Blythe Avenue root@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)