Anomaly in ex3.6
teklabs!terryl
teklabs!terryl
Thu Apr 8 13:28:12 AEST 1982
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
More information about the Comp.unix.wizards
mailing list