Skip to content

Commit 6a3c751

Browse files
committed
Fix for ACL's from Thomas A. Szybist.
1 parent 1125bbf commit 6a3c751

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

src/bin/pg_dump/pg_dump.c

+2-29
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.67 1998/03/30 16:47:32 momjian Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.68 1998/04/07 16:41:11 momjian Exp $
2525
*
2626
* Modifications - 6/10/96 - [email protected] - version 1.13.dhb
2727
*
@@ -2507,34 +2507,7 @@ dumpTables(FILE *fout, TableInfo *tblinfo, int numTables,
25072507
fputs(q, fout);
25082508

25092509
if (acls)
2510-
{
2511-
ACLlist = ParseACL(tblinfo[i].relacl, &l);
2512-
if (ACLlist == (ACL *) NULL)
2513-
{
2514-
if (l == 0)
2515-
continue;
2516-
else
2517-
{
2518-
fprintf(stderr, "Could not parse ACL list for %s...Exiting!\n",
2519-
tblinfo[i].relname);
2520-
exit_nicely(g_conn);
2521-
}
2522-
}
2523-
2524-
/* Revoke Default permissions for PUBLIC */
2525-
fprintf(fout,
2526-
"REVOKE ALL on %s from PUBLIC;\n",
2527-
tblinfo[i].relname);
2528-
2529-
for (k = 0; k < l; k++)
2530-
{
2531-
if (ACLlist[k].privledges != (char *) NULL)
2532-
fprintf(fout,
2533-
"GRANT %s on %s to %s;\n",
2534-
ACLlist[k].privledges, tblinfo[i].relname,
2535-
ACLlist[k].user);
2536-
}
2537-
}
2510+
dumpACL(fout, tblinfo[i]);
25382511
}
25392512
}
25402513
}

0 commit comments

Comments
 (0)