[crux-commits] ports/contrib (refs/remotes/origin/3.6): pam_xdg: do not set umask(2) either, or had to restore original value

crux at crux.nu crux at crux.nu
Sat Apr 10 19:05:54 UTC 2021


commit f12e5a8298307209b0657b1040f09c03d8bf9946
Author: Steffen Nurpmeso <steffen at sdaoden.eu>
Date:   Mon Feb 8 17:06:08 2021 +0100

    pam_xdg: do not set umask(2) either, or had to restore original value

diff --git a/pam_xdg/.signature b/pam_xdg/.signature
index 7145ad23b..3cadea97b 100644
--- a/pam_xdg/.signature
+++ b/pam_xdg/.signature
@@ -1,7 +1,7 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3zU5kDWhhX3qLiOO1k39Qr77RTQlPHx5nQ5AZM61Q7VwupJYofPRUC254NZx4DRiSpe7m+Xomj8CAR1bi44YKAs=
-SHA256 (Pkgfile) = bb1ddb4db1eaed4c45e506b5ca6d0baed5f3e813c88b9908c27566ea93f0ed55
+RWSagIOpLGJF31kzD0aPl+YxQhbsVf3vfdKQeBygrUwAVkQb1AygkWUjgPxC9v7TeEO9NSzUtdlp6E3ckytyI5hYQ+CGcDYDkA0=
+SHA256 (Pkgfile) = a042a0a8a24333b837840971cf0e84591fa2893a1f9b8871b814ddc804cf505e
 SHA256 (.footprint) = 56d789b652e6167f5fb93e1e6d48243e13f598c6d9a72705a8e54a003574ba31
-SHA256 (pam_xdg.c) = 23ddd5788de1d0e76381935f0b9de1f134f26039fbfe24bb4445ce5ebff4f04c
+SHA256 (pam_xdg.c) = 38927fe6847b8e252eeba4d11a39335fa6b161bbde22162042062df12c2f759c
 SHA256 (pam_xdg.8) = 2929bcd6655d28127d386215d3d8c4fed6744b65c4866ac7e49d54cb438d9133
 SHA256 (makefile) = 2466f499c3e84fd821176371fa9ff78143bf94b9ec09fd9e654b35613e4ead7d
diff --git a/pam_xdg/Pkgfile b/pam_xdg/Pkgfile
index 22293114e..ab5785e84 100644
--- a/pam_xdg/Pkgfile
+++ b/pam_xdg/Pkgfile
@@ -3,7 +3,7 @@
 # Maintainer:  Steffen Nurpmeso, steffen at sdaoden dot eu
 
 name=pam_xdg
-version=20210201
+version=20210208
 release=1
 source=($name.c $name.8 makefile)
 
diff --git a/pam_xdg/pam_xdg.c b/pam_xdg/pam_xdg.c
index ce326c610..aa6bfd19b 100644
--- a/pam_xdg/pam_xdg.c
+++ b/pam_xdg/pam_xdg.c
@@ -122,8 +122,6 @@ a_xdg(int isopen, pam_handle_t *pamh, int flags, int argc, const char **argv){
       goto jok;
 
    /* I admit all this is overly complicated and expensive */
-   umask(0022);
-
    if((cwdfd = open(a_RUNTIME_DIR_OUTER, (O_PATH | O_DIRECTORY | O_NOFOLLOW))
          ) == -1){
       emsg = "cannot obtain chdir(2) descriptor to " a_RUNTIME_DIR_OUTER;


More information about the crux-commits mailing list