diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-03-31 08:44:10 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 19:53:56 +0200 |
commit | dac2f1a94d2514137fb409b9a4a3268ac08506d7 (patch) | |
tree | 353dcf19a7ce061e7daf55d98c38f6a88649c081 /src/init1.c | |
parent | f9c459680ef61af4387edb352b899c43399698c6 (diff) |
Files: Remove setuid support completely.
Diffstat (limited to 'src/init1.c')
-rw-r--r-- | src/init1.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/init1.c b/src/init1.c index d8fc7053..debf3188 100644 --- a/src/init1.c +++ b/src/init1.c @@ -1513,15 +1513,9 @@ static void fp_stack_push(cptr name) /* Build the filename */ path_build(buf, 1024, ANGBAND_DIR_EDIT, name); - /* Grab permission */ - safe_setuid_grab(); - /* Open the file */ fp = my_fopen(buf, "r"); - /* Drop permission */ - safe_setuid_drop(); - /* Parse it */ if (!fp) quit(format("Cannot open '%s' file.", name)); @@ -11749,15 +11743,9 @@ errr process_dungeon_file(cptr full_text, cptr name, int *yval, int *xval, int y /* Build the filename */ path_build(buf, 1024, ANGBAND_DIR_EDIT, name); - /* Grab permission */ - safe_setuid_grab(); - /* Open the file */ fp = my_fopen(buf, "r"); - /* Drop permission */ - safe_setuid_drop(); - /* No such file */ if (!fp) { |