Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!rivm!ccea3 From: ccea3@rivm.UUCP (Adri Verhoef) Newsgroups: news.software.b Subject: Little mistake in inews.c (via patch.16) Keywords: ifdef DOGETUSER endif !DOGETUSER Message-ID: <1244@rivm05.UUCP> Date: 4 Feb 89 02:16:50 GMT Organization: RIVM, Bilthoven, The Netherlands Lines: 38 Something went wrong in patch.16 for B 2.11 news regarding inews.c; it looks to me that an ifndef and an endif were moved and that the ifndef was transformed into an ifdef. Take a look at the fragment from patch.16 (about line 196): *************** *** 281,283 - #ifndef DOGETUSER /* --- 299,300 ----- /* *************** *** 286,288 */ ! if (isatty(fileno(stderr))) { if ((user = getenv("USER")) == NULL) --- 303,309 ----- */ ! if (isatty(fileno(stderr)) ! #ifdef DOGETUSER ! && uid == 0 /* allow root to set name in any case */ ! #endif /* !DOGETUSER */ ! ) { if ((user = getenv("USER")) == NULL) *************** *** 292,294 } - #endif /* !DOGETUSER */ if (user == NULL || home == NULL) --- 313,314 ----- } if (user == NULL || home == NULL)