Commit f26a255d authored by Robert Ricci's avatar Robert Ricci
Browse files

chmod g+w the file we download, so that others in the group can

overwrite it.
parent acad9489
...@@ -32,6 +32,7 @@ my $FSDIR_GROUPS = "@FSDIR_GROUPS@"; ...@@ -32,6 +32,7 @@ my $FSDIR_GROUPS = "@FSDIR_GROUPS@";
# Locals # Locals
my $WGET = "/usr/local/bin/wget"; my $WGET = "/usr/local/bin/wget";
my $REALPATH = "/bin/realpath"; my $REALPATH = "/bin/realpath";
my $CHMOD = "/bin/chmod";
# #
# Turn off line buffering on output # Turn off line buffering on output
...@@ -177,5 +178,12 @@ if (($exit_status & 0xff) == SIGKILL) { ...@@ -177,5 +178,12 @@ if (($exit_status & 0xff) == SIGKILL) {
exit(15); 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); exit($exit_status >> 8);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment