From a405fc138596f552581d2011fd6de02d5c8186c4 Mon Sep 17 00:00:00 2001
From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com>
Date: Wed, 17 Nov 2021 01:05:54 +0100
Subject: Sync with the latest Gnulib code (1a268176f)
---
gl/idpriv-droptemp.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
(limited to 'gl/idpriv-droptemp.c')
diff --git a/gl/idpriv-droptemp.c b/gl/idpriv-droptemp.c
index 13d1064e..532413ab 100644
--- a/gl/idpriv-droptemp.c
+++ b/gl/idpriv-droptemp.c
@@ -1,5 +1,5 @@
/* Dropping uid/gid privileges of the current process temporarily.
- Copyright (C) 2009-2013 Free Software Foundation, Inc.
+ Copyright (C) 2009-2021 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
@@ -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