From 2de817214ff88de365964869b9d5efa8db762790 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 16 Mar 2015 19:16:15 -0600 Subject: [PATCH] Do not hide non-executable file in the UploadHandler. --- gns3server/handlers/upload_handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gns3server/handlers/upload_handler.py b/gns3server/handlers/upload_handler.py index 7fef01b5..a3995f5a 100644 --- a/gns3server/handlers/upload_handler.py +++ b/gns3server/handlers/upload_handler.py @@ -37,8 +37,7 @@ class UploadHandler: for root, _, files in os.walk(UploadHandler.image_directory()): for filename in files: image_file = os.path.join(root, filename) - if os.access(image_file, os.X_OK): - uploaded_files.append(image_file) + uploaded_files.append(image_file) except OSError: pass iourc_path = os.path.join(os.path.expanduser("~/"), ".iourc")