ASM #17726 - Restrictive permissions on hdf5 files and dirs prevent user access for troubleshooting.

Change-Id: Ic00953ec557fdc84cf8fe0d3d57558d0f6f48cfb

Former-commit-id: ec8206899754f4264e357807f7e99d755bd02a09
This commit is contained in:
Michael Gamazaychikov 2015-08-24 10:57:13 -04:00
parent aee9dffca8
commit 593e09aa66

View file

@ -40,6 +40,7 @@
# Apr 24, 2015 4425 nabowle Add DoubleDataRecord
# Jun 15, 2015 DR 17556 mgamazaychikov Add __doMakeReadable method to counteract umask 027 daemon
# and make copied files world-readable
# Aug 20, 2015 DR 17726 mgamazaychikov Remove __doMakeReadable method
#
#
@ -751,17 +752,10 @@ class H5pyDataStore(IDataStore.IDataStore):
def __doCopy(self, filepath, basePath, outputDir, compression):
shutil.copy(filepath, outputDir)
fileName = os.path.join(outputDir, os.path.basename(filepath))
success = os.path.isfile(fileName)
if success:
self.__doMakeReadable(fileName)
return success
success = (os.path.isfile(os.path.join(outputDir, os.path.basename(filepath))))
__doCopy.__display_name__ = 'copy'
def __doMakeReadable(self, fileName):
os.chmod(fileName,0644)
def repack(self, request):
resp = FileActionResponse()
pth = request.getFilename()