]> granicus.if.org Git - sudo/commitdiff
Add a new flag, -e, that makes it possible to give users the ability
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jan 2004 23:00:43 +0000 (23:00 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 21 Jan 2004 23:00:43 +0000 (23:00 +0000)
to edit files with the editor of their choice as the invoking user,
not the runas user.  Temporary files are used for the actual edit
and the temp file is copied over the original after the editor is done.

sudo.h

diff --git a/sudo.h b/sudo.h
index af18f68743d28cf5f41b326f843902268e964f72..d51708ec98238dc44931aaa6a9d001b150215df4 100644 (file)
--- a/sudo.h
+++ b/sudo.h
@@ -113,6 +113,7 @@ struct sudo_user {
 #define MODE_IMPLIED_SHELL       004000
 #define MODE_RESET_HOME          010000
 #define MODE_PRESERVE_GROUPS     020000
+#define MODE_EDIT                040000
 
 /*
  * Used with set_perms()