From: Todd C. Miller Date: Wed, 21 Jan 2004 23:00:43 +0000 (+0000) Subject: Add a new flag, -e, that makes it possible to give users the ability X-Git-Tag: SUDO_1_6_8~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7d74402f32b738d3575b8957e677a75ceeb2603;p=sudo Add a new flag, -e, that makes it possible to give users the ability 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. --- diff --git a/sudo.h b/sudo.h index af18f6874..d51708ec9 100644 --- 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()