forked from ports/contrib
pam_xdg: do not set umask(2) either, or had to restore original value
This commit is contained in:
parent
16305d2ff2
commit
f12e5a8298
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user