[Pkg-privacy-commits] [mat] 41/68: added check for readaccess to file

Sascha Steinbiss sascha at steinbiss.name
Sun Jan 3 12:32:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

sascha-guest pushed a commit to branch master
in repository mat.

commit 228ac6e11a3457388aa93af2c589a040773131b7
Author: Muri Nicanor <muri at immerda.ch>
Date:   Mon Dec 7 21:40:38 2015 +0100

    added check for readaccess to file
---
 mat-gui | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mat-gui b/mat-gui
index f481b07..45b0cdd 100755
--- a/mat-gui
+++ b/mat-gui
@@ -330,6 +330,8 @@ non-anonymised) file to output archive'))
         for item in filelist:
             if os.path.splitext(item)[1] in parser.NOMETA:
                 store.append([os.path.basename(item), _('Harmless fileformat')])
+            elif not os.access(item, os.R_OK):
+                store.append([os.path.basename(item), _('Cant read file')])
             else:
                 store.append([os.path.basename(item), _('Fileformat not supported')])
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git



More information about the Pkg-privacy-commits mailing list