~ubuntu-branches/ubuntu/precise/netams/precise

« back to all changes in this revision

Viewing changes to debian/patches/11_umask.diff

  • Committer: Bazaar Package Importer
  • Author(s): Alexander GQ Gerasiov
  • Date: 2009-11-26 02:08:19 UTC
  • Revision ID: james.westby@ubuntu.com-20091126020819-mfn4urmlr1id955h
Tags: 3.4.3+dfsg1-3
debian/copyright: add more details about sources of some part of the
code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: umask (026) for logs, config, storage.
 
2
        They all contain private information.
 
3
        Upstream applied it, but then reverted, because some users reports failures in
 
4
        their (not secure) installation.
 
5
Author: Alexander GQ Gerasiov <gq@debian.org>
 
6
Forwarded: yes
 
7
Index: netams/src/main.c
 
8
===================================================================
 
9
--- netams.orig/src/main.c      2009-11-23 14:25:23.000000000 +0300
 
10
+++ netams/src/main.c   2009-11-23 15:05:50.000000000 +0300
 
11
@@ -76,7 +76,7 @@
 
12
        }
 
13
 
 
14
        // umask(026) for logs, config, storage
 
15
-       //  umask(S_IWGRP | S_IROTH | S_IWOTH );
 
16
+       umask(S_IWGRP | S_IROTH | S_IWOTH );
 
17
 
 
18
        // We should close all available file descriptors except LOGFILE and syslog's fd.
 
19
        // daemon(...) closes only stdin, stdout, stderr, but there may be others.