summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-03-31 08:44:10 +0200
committerBardur Arantsson <bardur@scientician.net>2012-03-29 19:53:56 +0200
commitdac2f1a94d2514137fb409b9a4a3268ac08506d7 (patch)
tree353dcf19a7ce061e7daf55d98c38f6a88649c081 /src/main.c
parentf9c459680ef61af4387edb352b899c43399698c6 (diff)
Files: Remove setuid support completely.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/main.c b/src/main.c
index 82b8d6e0..5368f508 100644
--- a/src/main.c
+++ b/src/main.c
@@ -341,33 +341,6 @@ int main(int argc, char *argv[])
#ifdef SET_UID
- /*
- * Become user -- This will be the normal state for the rest of the game.
- *
- * Put this here because it's totally irrelevant to single user operating
- * systems, as witnessed by huge number of cases where these functions
- * weren't used appropriately (at least in this variant).
- *
- * Whenever it is necessary to open/remove/move the files in the lib folder,
- * this convention must be observed:
- *
- * safe_setuid_grab();
- *
- * fd_open/fd_make/fd_kill/fd_move which requires game's permission,
- * i.e. manipulating files under the lib directory
- *
- * safe_setuid_drop();
- *
- * Please never ever make unmatched calls to these grab/drop functions.
- *
- * Please note that temporary files used by various information commands
- * and ANGBAND_DIR_USER files shouldn't be manipulated this way, because
- * they reside outside of the lib directory on multiuser installations.
- * -- pelpel
- */
- safe_setuid_drop();
-
-
/* Acquire the "user name" as a default player name */
user_name(player_name, player_uid);