Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
324c7dca
Commit
324c7dca
authored
Aug 20, 2002
by
Austin Clements
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error in doaccounts when SFS isn't running
parent
dfc05da2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
130 additions
and
126 deletions
+130
-126
tmcd/common/libsetup.pm
tmcd/common/libsetup.pm
+65
-63
tmcd/libsetup.pm
tmcd/libsetup.pm
+65
-63
No files found.
tmcd/common/libsetup.pm
View file @
324c7dca
...
@@ -1139,6 +1139,7 @@ sub doaccounts()
...
@@ -1139,6 +1139,7 @@ sub doaccounts()
#
#
# Create sfs_users file and populate it with public SFS keys
# Create sfs_users file and populate it with public SFS keys
#
#
if
(
$USESFS
)
{
do
{
do
{
if
(
!
open
(
SFSKEYS
,
"
> /etc/sfs/sfs_users.new
"))
{
if
(
!
open
(
SFSKEYS
,
"
> /etc/sfs/sfs_users.new
"))
{
warn
("
*** WARNING: Could not open /etc/sfs/sfs_users.new: $!
\n
");
warn
("
*** WARNING: Could not open /etc/sfs/sfs_users.new: $!
\n
");
...
@@ -1207,6 +1208,7 @@ sub doaccounts()
...
@@ -1207,6 +1208,7 @@ sub doaccounts()
# The do-while is an easy way out in case of errors
# The do-while is an easy way out in case of errors
}
}
while
0
;
while
0
;
}
return
0
;
return
0
;
}
}
...
...
tmcd/libsetup.pm
View file @
324c7dca
...
@@ -1139,6 +1139,7 @@ sub doaccounts()
...
@@ -1139,6 +1139,7 @@ sub doaccounts()
#
#
# Create sfs_users file and populate it with public SFS keys
# Create sfs_users file and populate it with public SFS keys
#
#
if
(
$USESFS
)
{
do
{
do
{
if
(
!
open
(
SFSKEYS
,
"
> /etc/sfs/sfs_users.new
"))
{
if
(
!
open
(
SFSKEYS
,
"
> /etc/sfs/sfs_users.new
"))
{
warn
("
*** WARNING: Could not open /etc/sfs/sfs_users.new: $!
\n
");
warn
("
*** WARNING: Could not open /etc/sfs/sfs_users.new: $!
\n
");
...
@@ -1207,6 +1208,7 @@ sub doaccounts()
...
@@ -1207,6 +1208,7 @@ sub doaccounts()
# The do-while is an easy way out in case of errors
# The do-while is an easy way out in case of errors
}
}
while
0
;
while
0
;
}
return
0
;
return
0
;
}
}
...
...
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