patch for fix this bug in postinst _AND_ _dhelp_parse_ _util_.

diff -ruN dhelp-0.5.24/debian/postinst dhelp-0.5.24.new/debian/postinst
--- dhelp-0.5.24/debian/postinst        2004-04-02 12:13:37.000000000 +0400
+++ dhelp-0.5.24.new/debian/postinst    2007-06-25 00:46:17.000000000 +0400
@@ -18,6 +18,9 @@
 # MA  02111-1307  USA.
 
 # source debconf library
+
+umask 022
+
 . /usr/share/debconf/confmodule
 
 # create configuration directory if necessary
diff -ruN dhelp-0.5.24/dhelp_parse.c dhelp-0.5.24.new/dhelp_parse.c
--- dhelp-0.5.24/dhelp_parse.c  2005-09-04 21:56:59.000000000 +0400
+++ dhelp-0.5.24.new/dhelp_parse.c      2007-06-25 02:42:34.000000000 +0400
@@ -780,6 +780,8 @@
   char zw[MAXPATHLEN];
   char resolv_name[MAXPATHLEN];
 
+  umask(022);
+
   if ((argc < 2) || (strlen (argv[1]) != 2) || (argv[1][0] != '-'))
   {
     help();

Reply via email to