Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
f26a255d
Commit
f26a255d
authored
Jun 09, 2005
by
Robert Ricci
Browse files
chmod g+w the file we download, so that others in the group can
overwrite it.
parent
acad9489
Changes
1
Show whitespace changes
Inline
Side-by-side
tbsetup/fetchtar.proxy.in
View file @
f26a255d
...
...
@@ -32,6 +32,7 @@ my $FSDIR_GROUPS = "@FSDIR_GROUPS@";
# Locals
my
$WGET
=
"
/usr/local/bin/wget
";
my
$REALPATH
=
"
/bin/realpath
";
my
$CHMOD
=
"
/bin/chmod
";
#
# Turn off line buffering on output
...
...
@@ -177,5 +178,12 @@ if (($exit_status & 0xff) == SIGKILL) {
exit
(
15
);
}
#
# Change the permissions on the file so that other group members can overwrite
# it
#
system
("
$CHMOD
g+w
$localfile
")
or
die
("
*** ERROR - Unable to change permissions on
$localfile
!
");
exit
(
$exit_status
>>
8
);
Write
Preview
Supports
Markdown
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