From e8bd88d1fcded01ccd066572eeaae1b507989cb3 Mon Sep 17 00:00:00 2001
From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com>
Date: Tue, 31 Jan 2023 14:46:01 +0100
Subject: Sync with the latest Gnulib code 668c0b8ffa
---
gl/idpriv-droptemp.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
(limited to 'gl/idpriv-droptemp.c')
diff --git a/gl/idpriv-droptemp.c b/gl/idpriv-droptemp.c
index 13d1064e..2a85431a 100644
--- a/gl/idpriv-droptemp.c
+++ b/gl/idpriv-droptemp.c
@@ -1,9 +1,9 @@
/* Dropping uid/gid privileges of the current process temporarily.
- Copyright (C) 2009-2013 Free Software Foundation, Inc.
+ Copyright (C) 2009-2023 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
+ the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -12,7 +12,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see . */
+ along with this program. If not, see . */
#include
@@ -58,7 +58,9 @@ idpriv_temp_drop (void)
/* This is for executables that have the setuid bit set. */
# if HAVE_SETRESUID /* glibc, FreeBSD, OpenBSD, HP-UX */
- /* See
+ /* See
+ Hao Chen, David Wagner, Drew Dean: Setuid Demystified
+
figure 14. */
if (setresuid (-1, uid, saved_uid) < 0)
return -1;
@@ -134,7 +136,9 @@ idpriv_temp_restore (void)
/* This is for executables that have the setuid bit set. */
# if HAVE_SETRESUID /* glibc, FreeBSD, OpenBSD, HP-UX */
- /* See
+ /* See
+ Hao Chen, David Wagner, Drew Dean: Setuid Demystified
+
figure 14. */
if (setresuid (-1, saved_uid, -1) < 0)
return -1;
--
cgit v1.2.3-74-g34f1