> So, do you want some arbitrary user be able to undo the changes that
> 
> root has made?  Those are root's changes, in my opinion only root should
> 
> be able to do anything with these changes.  Also, we probably don't want
> 
> any other user than root being able to see what changes were made, thus
> 
> the owner of the undo file must be set to the user who made the changes.
> 
> 
> 
> In case the same user edits the file again, then it does make sense to
> 
> use the undo file.  So perhaps we can allow reading the undo file if
> 
> it's owned by the current user, even when this differs from the owner of
> 
> the file?

I think in case the undo file is in same directory as the file being edited, 
checking who is the owner of the undo file should be done, to prevent security 
problems.

but if all undo files are in the root's home folder, then this check may be 
omitted since root only has access to the /root

as an option, you can add a param which will disable the comparing of ownership 
of the undo files, if you specified the directory for them (set undodir=...)

how do you like that kind of logic?

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui