Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!xylogics!loverso From: loverso@Xylogics.COM (John Robert LoVerso) Newsgroups: comp.bugs.4bsd Subject: O_APPEND not getting set on UUCP logfiles Keywords: UUCP 4.3BSD-tahoe Message-ID: <1252@xenna.Xylogics.COM> Date: 17 Apr 89 17:13:31 GMT Organization: Xylogics, Inc., Burlington MA Lines: 28 Index: usr.bin/uucp/logent.c 4.3BSD-tahoe Description: When the more generic logfile code was added to UUCP, one variable name change was missed, causing the O_APPEND flag to never get set for logfiles. Repeat-By: Run multiple UUCPs... watch the log get munged. Fix: Apply this patch: *** logent.c_orig Wed May 4 16:53:05 1988 --- logent.c Mon Apr 17 11:54:31 1989 *************** *** 53,57 **** int flags; flags = fcntl(fileno(fp), F_GETFL, 0); ! fcntl(fileno(Lp), F_SETFL, flags|O_APPEND); #endif /* F_SETFL */ fioclex(fileno(fp)); --- 53,57 ---- int flags; flags = fcntl(fileno(fp), F_GETFL, 0); ! fcntl(fileno(fp), F_SETFL, flags|O_APPEND); #endif /* F_SETFL */ fioclex(fileno(fp));