pgpool2.git / summary / log / commit / refs

commit    b67f436502094ea76ff8d84dfaa81866671f4224
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Wed Apr 17 06:09:00 2013 +0000

    Remove root user check when watch is enabled.
    
    Per discussion [pgpool-general: 1627] Re: watchdog root requirement.


main.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/main.c b/main.c index 463f06a49..5d7659504 100644 --- a/main.c +++ b/main.c @@ -429,16 +429,6 @@ int main(int argc, char **argv) /* if_up, if_down and arping command have a sticky bit */ pool_log("watchdog might call network commands which using sticky bit."); } - else - { - /* check root */ - if (geteuid() != 0) - { - pool_error("watchdog must be started under the privileged user ID to up/down virtual network interface."); - pool_shmem_exit(1); - exit(1); - } - } } /* set signal masks */ [parent: 1441990e2728]