Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Blame | Last modification | View Log | RSS feed

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672936
Origin: upstream, https://git.lysator.liu.se/lsh/lsh/commit/99b8bf8cf29a8a5e6cb63edd5c46bfa337b5a1d2
From: Niels Möller <nisse@lysator.liu.se>
Subject: Don't clear umask.

--- a/src/daemon.c
+++ b/src/daemon.c
@@ -303,13 +303,9 @@ daemon_init(enum daemon_mode mode)
     }
 
   /* Enter the root directory to prevent hampering umounts. */
-
   if (chdir(ROOT_DIR) == -1)
     return 0;
 
-  /* Clear umask to enable explicit file modes. */
-  umask(0);
-
   return 1;
 }