Use switch_to_unix_user
authorJamie Cameron <jcameron@webmin.com>
Sat, 30 May 2009 21:25:02 +0000 (21:25 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 30 May 2009 21:25:02 +0000 (21:25 +0000)
postgresql/config.info.ko_KR.UTF-8
postgresql/postgresql-lib.pl

index 44daeea..0c0163a 100644 (file)
@@ -25,4 +25,3 @@ max_text=텍스트 필ㄷ의 최대 출력 길이,3,제한없음
 pid_file=postmaster PID 파일 경로,8
 login=관리자 로그인,0
 add_mode=종단 편집 인터페이스 사용여부,1,1-예,0-아니오
-hba_conf=
index 5254ac3..1ede9df 100644 (file)
@@ -292,8 +292,7 @@ if ($driver_handle &&
                # DBI call which must run in subprocess
                pipe(OUTr, OUTw);
                if (!($pid = fork())) {
-                       ($(, $)) = ( $uinfo[3], $uinfo[3] );
-                       ($>, $<) = ( $uinfo[2], $uinfo[2] );
+                       &switch_to_unix_user(\@uinfo);
                        close(OUTr);
                        local $dbh = $driver_handle->connect($cstr,
                                        $postgres_login, $postgres_pass);