projects
/
mirror
/
dsa-nagios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0a4820
)
new perl complains about rmdir of cwd
author
Stephen Gran
<steve@lobefin.net>
Thu, 24 Mar 2011 09:55:08 +0000
(09:55 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Thu, 24 Mar 2011 09:55:08 +0000
(09:55 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
dsa-nagios-checks/checks/dsa-check-raid-aacraid
patch
|
blob
|
history
diff --git
a/dsa-nagios-checks/checks/dsa-check-raid-aacraid
b/dsa-nagios-checks/checks/dsa-check-raid-aacraid
index
39d725a
..
3e7375b
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-raid-aacraid
+++ b/
dsa-nagios-checks/checks/dsa-check-raid-aacraid
@@
-139,5
+139,9
@@
while ($ctrl <= $numcontrollers) {
if ( -e 'UcliEvt.log' ) {
unlink('UcliEvt.log') or die ("Cannot unlink UcliEvt.log: $!\n");
}
+
+# Need to chdir out of tempdir in order to rm it in new perl
+chdir ('/') or die ("Cannot chdir /: $!\n");
+
print "$EXITCODE: ", join(" --- ", @resultstr), "\n";
exit $CODE{$EXITCODE};