Ateklabs.1139 net.unix-wizards utzoo!decvax!ucbvax!G:ARPAVAX:CAD:teklabs!terryl Thu Apr 8 13:28:12 1982 Anomaly in ex3.6 In version 3.6 of ex in the file ex_temp.c, a call to getuid() is made and the return value is compared with the user id of the file being edited; if they match, then the file is edited as normal; if they don't match, then the file is edited as "read-only". Shouldn't the call really be to geteuid()? I know that for 99% of the uses of ex, it shouldn't matter, but someone here at TEK wrote a set-user-id program that used ex, and couldn't understand why the file was being edited as "read-only", even though he could do a w! and the file would get written out. Needless to say that was very suspicious, and looking in ex_temp.c confirmed it. Any comments out there??? Terry Laskodi ....!ucbvax!teklabs!terryl ....!decvax!teklabs!terryl ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.