summaryrefslogtreecommitdiffstats
path: root/gl/idpriv-droptemp.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-03-26 12:53:53 +0100
committerGitHub <noreply@github.com>2026-03-26 12:53:53 +0100
commit13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch)
tree3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/idpriv-droptemp.c
parent9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff)
downloadmonitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz
Update/gnulib 2026 03 (#2247)HEADmaster
* Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers
Diffstat (limited to 'gl/idpriv-droptemp.c')
-rw-r--r--gl/idpriv-droptemp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gl/idpriv-droptemp.c b/gl/idpriv-droptemp.c
index ecaab836..993d25b6 100644
--- a/gl/idpriv-droptemp.c
+++ b/gl/idpriv-droptemp.c
@@ -1,5 +1,5 @@
1/* Dropping uid/gid privileges of the current process temporarily. 1/* Dropping uid/gid privileges of the current process temporarily.
2 Copyright (C) 2009-2025 Free Software Foundation, Inc. 2 Copyright (C) 2009-2026 Free Software Foundation, Inc.
3 3
4 This program is free software: you can redistribute it and/or modify 4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
@@ -51,7 +51,7 @@ idpriv_temp_drop (void)
51# if HAVE_SETRESGID /* glibc, FreeBSD, OpenBSD, HP-UX */ 51# if HAVE_SETRESGID /* glibc, FreeBSD, OpenBSD, HP-UX */
52 if (setresgid (-1, gid, saved_gid) < 0) 52 if (setresgid (-1, gid, saved_gid) < 0)
53 return -1; 53 return -1;
54# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, OSF/1, Cygwin */ 54# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */
55 if (setregid (-1, gid) < 0) 55 if (setregid (-1, gid) < 0)
56 return -1; 56 return -1;
57# endif 57# endif
@@ -64,7 +64,7 @@ idpriv_temp_drop (void)
64 figure 14. */ 64 figure 14. */
65 if (setresuid (-1, uid, saved_uid) < 0) 65 if (setresuid (-1, uid, saved_uid) < 0)
66 return -1; 66 return -1;
67# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, OSF/1, Cygwin */ 67# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */
68 if (setreuid (-1, uid) < 0) 68 if (setreuid (-1, uid) < 0)
69 return -1; 69 return -1;
70# endif 70# endif
@@ -142,7 +142,7 @@ idpriv_temp_restore (void)
142 figure 14. */ 142 figure 14. */
143 if (setresuid (-1, saved_uid, -1) < 0) 143 if (setresuid (-1, saved_uid, -1) < 0)
144 return -1; 144 return -1;
145# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, OSF/1, Cygwin */ 145# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */
146 if (setreuid (-1, saved_uid) < 0) 146 if (setreuid (-1, saved_uid) < 0)
147 return -1; 147 return -1;
148# endif 148# endif
@@ -151,7 +151,7 @@ idpriv_temp_restore (void)
151# if HAVE_SETRESGID /* glibc, FreeBSD, OpenBSD, HP-UX */ 151# if HAVE_SETRESGID /* glibc, FreeBSD, OpenBSD, HP-UX */
152 if (setresgid (-1, saved_gid, -1) < 0) 152 if (setresgid (-1, saved_gid, -1) < 0)
153 return -1; 153 return -1;
154# else /* Mac OS X, NetBSD, AIX, IRIX, Solaris >= 2.5, OSF/1, Cygwin */ 154# else /* Mac OS X, NetBSD, AIX, Solaris >= 2.5, Cygwin */
155 if (setregid (-1, saved_gid) < 0) 155 if (setregid (-1, saved_gid) < 0)
156 return -1; 156 return -1;
157# endif 157# endif