summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 21:11:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 21:11:17 +0800
commit99290f899e9334d5b2cc9a6714cf7cc589c87aeb (patch)
tree299287ea3d823420b937d95f043a8a5720274ac6
parent043d8361706539a4aa620232e096682fc83035ab (diff)
downloadpttbbs-99290f899e9334d5b2cc9a6714cf7cc589c87aeb.tar
pttbbs-99290f899e9334d5b2cc9a6714cf7cc589c87aeb.tar.gz
pttbbs-99290f899e9334d5b2cc9a6714cf7cc589c87aeb.tar.bz2
pttbbs-99290f899e9334d5b2cc9a6714cf7cc589c87aeb.tar.lz
pttbbs-99290f899e9334d5b2cc9a6714cf7cc589c87aeb.tar.xz
pttbbs-99290f899e9334d5b2cc9a6714cf7cc589c87aeb.tar.zst
pttbbs-99290f899e9334d5b2cc9a6714cf7cc589c87aeb.zip
* bbsctl: should keep back setuid
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4593 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/bbsctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/util/bbsctl.c b/util/bbsctl.c
index e8b6e067..a881e03e 100644
--- a/util/bbsctl.c
+++ b/util/bbsctl.c
@@ -94,12 +94,10 @@ int parse_bindports_mode(const char *fn)
int startbbs(int argc, char **argv)
{
const char *bindports_fn = BBSHOME "/" FN_CONF_BINDPORTS;
-#if 0
if( setuid(0) < 0 ){
perror("setuid(0)");
exit(1);
}
-#endif
// if there's bindports.conf, use it.
if (dashs(bindports_fn) > 0)