🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by utzoodecvaxucbvaxucbcadtektronix... Mon, 04 Apr 1983 23:29
Bug in move
#118
Author: utzoodecvaxucbvaxucbcadtektronix...
Date: Mon, 04 Apr 1983 23:29
15 lines
1092 bytes
Boy, am I ticked off.  I can't use "mv" from a suid'ed shell script.
You see, "mv" needs to be suid root in case someone wants to move a
directory (because joe-user isn't allowed to fool with directory links).
So, whenever "mv" decides not to move directories, it does a:
	setuid(getuid())
and (sometimes) execls "cp" to just copy the file.  Well, cp is running
with the real uid now since the old effective uid was lost when "mv"
started up as a suid program.

Seems to me that "mv" should start out regular and call "mvdir" when
it figures out that it is moving a directory.  After all, it's already
calling "cp" sometimes, so it's not such a big deal.  Of course, "mvdir"
doesn't exist yet....

Oh well. I'm gonna change that "mv" to a "cp" and an "rm" and keep on codin'
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads