Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
89b168e9
Commit
89b168e9
authored
Oct 06, 2003
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove isadmin check from export_tables, and back out Mac's last
change.
parent
8d30796a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
db/dbfillcheck.in
db/dbfillcheck.in
+1
-2
utils/export_tables.in
utils/export_tables.in
+1
-5
No files found.
db/dbfillcheck.in
View file @
89b168e9
...
...
@@ -23,7 +23,6 @@ my $testbed_srcdir = "@top_srcdir@";
# Locals
my
$master_fill
=
"
$testbed_srcdir
/sql/database-fill.sql
";
my
$export_tables
=
"
../utils/export_tables
";
my
$wap
=
"
$testbed_srcdir
/utils/withadminprivs
";
my
$tempfile
=
"
/tmp/dbdiff.$$
";
my
$exitcode
=
0
;
...
...
@@ -31,7 +30,7 @@ my $exitcode = 0;
# Diff exits with 2 if a problem. We tell diff to ignore whitespace
# changes and comment lines (line starting with '--').
#
if
(
system
("
perl
$wap
perl
$export_tables
|
"
.
if
(
system
("
perl
$export_tables
|
"
.
"
diff -b -B -I '^--.*
\$
'
$master_fill
- >
$tempfile
")
==
2
)
{
unlink
(
$tempfile
);
die
("
*** $0:
\n
"
.
...
...
utils/export_tables.in
View file @
89b168e9
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
2
University of Utah and the Flux Group.
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -22,10 +22,6 @@ my $DBNAME = '@TBDBNAME@';
my
$mysqldump
=
"
mysqldump
";
if
(
!
TBAdmin
(
$UID
))
{
die
("
Only admins get to use this program
\n
");
}
#
# Build a list of tables to export
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment