Blob Blame History Raw
diff --git a/rhnsd.c b/rhnsd.c
index 77cfeb3..896b433 100644
--- a/rhnsd.c
+++ b/rhnsd.c
@@ -176,7 +176,6 @@ int main (int argc, char **argv)
 
         if (setsid() < 0)
             exit(EXIT_FAILURE);
-	umask(0);
 
 	chdir ("/");
 
diff --git a/rhnsd.spec b/rhnsd.spec
index b55ea15..c7ed440 100644
--- a/rhnsd.spec
+++ b/rhnsd.spec
@@ -5,7 +5,7 @@ Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.
 URL:     https://fedorahosted.org/spacewalk
 Name: rhnsd
 Version: 5.0.13
-Release: 7.2%{?dist}
+Release: 7.3%{?dist}
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: gettext
@@ -138,6 +138,10 @@ rm -fr $RPM_BUILD_ROOT
 %doc LICENSE
 
 %changelog
+* Tue Oct 31 2017 Tomas Kasparek <tkasparek@redhat.com> 5.0.13-7.3
+- Resolves: #1506910 - umask(0) does not reset to default umask
+  (tkasparek@redhat.com)
+
 * Tue Oct 31 2017 Tomas Kasparek <tkasparek@redhat.com> 5.0.13-7.2
 - Resolves: #1506911 - close and reopen syslog when redirecting child output
   (martin.matuska@axelspringer.de)