Ignore deprecation warning for daemon on macOS
PATCH 1/1 Ignore deprecation warning for daemon on macOS
Follow up to a480eaa (does the same for auth-pam.c).
--- src/plugins/auth-pam/auth-pam.c | 7 +++++++ 1 file changed, 7 insertions(+)
src/plugins/auth-pam/auth-pam.c +7 -0
@@ -214,10 +214,17 @@ daemonize(const char *envp[]) { fd =dup (2 ); } +#if defined(__APPLE__) && defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif if (daemon (0 ,0 ) <0 ) {plugin_log (PLOG_ERR |PLOG_ERRNO ,MODULE ,"daemonization failed" ); } +#if defined(__APPLE__) && defined(__clang__) +#pragma clang diagnostic pop +#endif else if (fd >= 3) {dup2 (fd,2 );
Signature · 1 line
2.32.0 (Apple Git-132)
Thanks for your submission. Indeed, this is the same as Arne sent in commit a480eaae1d32a6, which was only applied to one of the plugins in question (plugins/down-root) and not plugins/auth-pam.
Your patch has been applied to the master branch.
commit d5c1ec2913620cec5b453c35d5c851f8c79a7ae1
Author: Saifur Rahman Mohsin via Openvpn-devel Date: Thu Feb 24 22:53:30 2022 +0530
Ignore deprecation warning for daemon() on macOS (plugin/auth-pam)
Signed-off-by: Saifur Rahman Mohsin <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg23890.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
Hi,
Quoted 10 lines · Gert Doering
Acked-by Gert Doering <[email protected]...>Thanks for your submission. Indeed, this is the same as Arne sent in commit
a480eaae1d32a6, which was only applied to one of the plugins in question (plugins/down-root) and not plugins/auth-pam.Your patch has been applied to the master branch.
commit
d5c1ec2913620cec5b453c35d5c851f8c79a7ae1
Author: Saifur Rahman Mohsin via Openvpn-devel
Unfortunately, I saw the "via Openvpn-devel" too late, so had to reset "--author" to contain the correct mail address - thus, the commit ID changed before pushing
commit cd194f552f67a1ad7951d0de9dba7448a3880805
Author: Saifur Rahman Mohsin <[email protected]...>
Apologies for the confusion.
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...Hello
No worries. Thanks.
Saifur Rahman Mohsin
Technology Evangelist
On 26-Feb-2022, at 3:45 PM, Gert Doering <[email protected]...> wrote:
Hi,
Quoted 10 lines · Gert Doering
Acked-by Gert Doering <[email protected]...>Thanks for your submission. Indeed, this is the same as Arne sent in commit
a480eaae1d32a6, which was only applied to one of the plugins in question (plugins/down-root) and not plugins/auth-pam.Your patch has been applied to the master branch.
commit
d5c1ec2913620cec5b453c35d5c851f8c79a7ae1
Author: Saifur Rahman Mohsin via Openvpn-devel
Unfortunately, I saw the "via Openvpn-devel" too late, so had to reset "--author" to contain the correct mail address - thus, the commit ID changed before pushing
commit cd194f552f67a1ad7951d0de9dba7448a3880805
Author: Saifur Rahman Mohsin <[email protected]...>
Apologies for the confusion.
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...