Subversion Repositories lsh

Compare Revisions

Ignore whitespace Rev 147 → Rev 148

/trunk/debian/changelog
1,3 → 1,10
lsh-utils (2.1-11) unstable; urgency=low
 
* dont_clear_umask.patch (new): Don't clear umask in lshd, but keep the
one it was launched with (typically 022) (Closes: #672936).
 
-- Magnus Holmgren <holmgren@debian.org> Tue, 24 Jan 2017 21:40:52 +0100
 
lsh-utils (2.1-10) unstable; urgency=low
 
* Add missing lsb-base dependency.
/trunk/debian/patches/dont_clear_umask.patch
New file
0,0 → 1,21
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;
}
/trunk/debian/patches/series
6,3 → 6,4
nettle3.patch
missing_include.patch
mit-kerberos.patch
dont_clear_umask.patch