[otrs-cvs] otrs/Kernel/System/VirtualFS FS.pm,1.5,1.6

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System/VirtualFS
In directory lancelot:/tmp/cvs-serv8225/Kernel/System/VirtualFS

Modified Files:
	FS.pm 
Log Message:
Follow-up fix. Create directories recursively to also work if var/virtualfs is not yet present.

Author: mg

Index: FS.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/VirtualFS/FS.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -2 -u -d -r1.5 -r1.6
--- FS.pm	3 Dec 2012 11:38:40 -0000	1.5
+++ FS.pm	3 Dec 2012 12:43:29 -0000	1.6
@@ -15,4 +15,5 @@
 use warnings;
 
+use File::Path qw();
 use Time::HiRes qw();
 
@@ -46,5 +47,5 @@
     my $Path = "$Self->{DataDir}/$PermissionCheckDirectory";
 
-    if ( mkdir( $Path, 022 ) ) {
+    if ( File::Path::make_path( $Path, { mode => 0755 } ) ) {
         rmdir $Path;
     }
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.