[pan2: 5/68] Don't save files as executable.



commit 07b3d597ff01994b570fd7f63c18def3b5e49b4d
Author: K. Haley <haleykd users sf net>
Date:   Sun Oct 4 14:21:23 2009 -0600

    Don't save files as executable.
    
    Security patch from bugs.launchpad.net #374097.

 pan/tasks/decoder.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pan/tasks/decoder.cc b/pan/tasks/decoder.cc
index 51ac6c5..5e8bfa8 100644
--- a/pan/tasks/decoder.cc
+++ b/pan/tasks/decoder.cc
@@ -135,6 +135,7 @@ Decoder :: do_work()
     {
       UUSetMsgCallback (this, uu_log);
       UUSetOption (UUOPT_DESPERATE, 1, NULL); // keep incompletes; they're useful to par2
+      UUSetOption (UUOPT_IGNMODE, 1, NULL); // don't save file as executable
       UUSetBusyCallback (this, uu_busy_poll, 500); // .5 secs busy poll?
 
       int i (0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]