[Fusioninventory-commit] [fusinv/fusioninventory-agent] aefa7e: fix: File::Path::mkpath error handling
Gonéri Le Bouder
goneri at rulezlan.org
Sun Sep 16 08:22:11 UTC 2012
Branch: refs/heads/2.2.x
Home: https://github.com/fusinv/fusioninventory-agent
Commit: aefa7eec0c3d007f16c4f93267a3bb872aacbb0d
https://github.com/fusinv/fusioninventory-agent/commit/aefa7eec0c3d007f16c4f93267a3bb872aacbb0d
Author: Gonéri Le Bouder <goneri at rulezlan.org>
Date: 2012-09-16 (Sun, 16 Sep 2012)
Changed paths:
M lib/FusionInventory/Agent/Storage.pm
Log Message:
-----------
fix: File::Path::mkpath error handling
RHEL5's File::Path::mkpath() doesn't support the error parameter.
According to the documentation, if we don't pass this parameter,
File::Path::mkpath() will die() in case of error. This is by
the way what we want/do.
So, I drop this {error => \my $err}, this will avoid a error message
on RHEL5 and will simplify the current code (error → die).
closes: #1817
Reported-by: Jason Smith <smithj4 at bnl.gov>
More information about the Fusioninventory-commit
mailing list