Article View: comp.bugs.4bsd
Article #1377O_APPEND not getting set on UUCP logfiles
From: John Robert LoVerso
Date: Mon, 17 Apr 1989 17:13
Date: Mon, 17 Apr 1989 17:13
28 lines
1163 bytes
1163 bytes
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));
Technical Details
Message-ID:
<1252@xenna.Xylogics.COM>Path:
arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!xylogics!loversoShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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