1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

Consistently use geteuid() not getuid(); there were a few places deviating

from our long-established standard.
This commit is contained in:
Tom Lane
2005-01-08 22:51:15 +00:00
parent b5adf46cbd
commit 8afe005f42
6 changed files with 14 additions and 16 deletions

View File

@ -1,6 +1,7 @@
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "msql.h"
#include "libpq-fe.h"
@ -264,7 +265,7 @@ msqlListTables(int a)
snprintf(tbuf, BUFSIZ,
"select relname from pg_class where relkind='r' and relowner=%d",
getuid());
geteuid());
if (msqlQuery(a, tbuf) > 0)
{
m = msqlStoreResult();
@ -288,7 +289,7 @@ msqlListIndex(int a, char *b, char *c)
snprintf(tbuf, BUFSIZ,
"select relname from pg_class where relkind='i' and relowner=%d",
getuid());
geteuid());
if (msqlQuery(a, tbuf) > 0)
{
m = msqlStoreResult();