- Security Fix

privillege esaclation to write as user ifmail
Submitted by:	Niels Heinen, Jacques A Vidrine
This commit is contained in:
Dirk Meyer 2004-10-27 04:34:53 +00:00
parent d0d6ea5870
commit 5bdffe382c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120295
2 changed files with 37 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= ifmail
PORTVERSION= 2.15
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/fido

View File

@ -0,0 +1,36 @@
*** iflib/rdconfig.c.orig Tue Oct 19 11:27:29 2004
--- iflib/rdconfig.c Tue Oct 19 11:29:47 2004
***************
*** 5,10 ****
--- 5,11 ----
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
+ #include <unistd.h>
#include "xutil.h"
#include "lutil.h"
#include "ftn.h"
***************
*** 402,409 ****
verbose=setverbose(arg);
break;
! case 'I': configname=arg;
! break;
default: return 1; /* unrecognized option */
--- 403,415 ----
verbose=setverbose(arg);
break;
! case 'I':
! if (issetugid())
! fprintf(stderr,
! "readconfig: -I option ignored while running as set-user-ID\n");
! else
! configname=arg;
! break;
default: return 1; /* unrecognized option */