Commit 71731de9 authored by Leigh Stoller's avatar Leigh Stoller

Make sure temp files are removed after failed moduserinfo operation.

parent fd7637d9
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006-2009 University of Utah and the Flux Group.
# Copyright (c) 2006-2010 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -214,7 +214,6 @@ class User
SUEXECERROR(SUEXEC_ACTION_CONTINUE);
}
else {
# unlink($xmlname);
if (count($suexec_output_array)) {
for ($i = 0; $i < count($suexec_output_array); $i++) {
$line = $suexec_output_array[$i];
......@@ -229,6 +228,7 @@ class User
else
$errors[] = "Transient error(4, $retval); please try again later.";
}
unlink($xmlname);
return null;
}
......
Markdown is supported
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