View | Details | Raw Unified | Return to bug 259513
Collapse All | Expand All

(-)b/devel/glib20/Makefile (-3 / +2 lines)
Lines 1-8 Link Here
1
# Created by: Vanilla I. Shu <vanilla@FreeBSD.org>
1
# Created by: Vanilla I. Shu <vanilla@FreeBSD.org>
2
2
3
PORTNAME=	glib
3
PORTNAME=	glib
4
DISTVERSION=	2.70.0
4
DISTVERSION=	2.70.1
5
PORTREVISION=	1
6
PORTEPOCH=	2
5
PORTEPOCH=	2
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
MASTER_SITES=	GNOME
7
MASTER_SITES=	GNOME
Lines 34-40 BINARY_ALIAS= python3=${PYTHON_CMD} Link Here
34
PORTSCOUT=	limitw:1,even
33
PORTSCOUT=	limitw:1,even
35
CPE_VENDOR=	gnome
34
CPE_VENDOR=	gnome
36
35
37
_LIBVERSION=	0.7000.0
36
_LIBVERSION=	0.7000.1
38
PLIST_SUB=	LIBVERSION=${_LIBVERSION}
37
PLIST_SUB=	LIBVERSION=${_LIBVERSION}
39
38
40
OPTIONS_DEFINE=	DEBUG FAM_ALTBACKEND MANPAGES NLS TEST
39
OPTIONS_DEFINE=	DEBUG FAM_ALTBACKEND MANPAGES NLS TEST
(-)b/devel/glib20/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1631873876
1
TIMESTAMP = 1635424476
2
SHA256 (gnome/glib-2.70.0.tar.xz) = 200d7df811c5ba634afbf109f14bb40ba7fde670e89389885da14e27c0840742
2
SHA256 (gnome/glib-2.70.1.tar.xz) = f9b7bce7f51753a1f43853bbcaca8bf09e15e994268e29cfd7a76f65636263c0
3
SIZE (gnome/glib-2.70.0.tar.xz) = 4796812
3
SIZE (gnome/glib-2.70.1.tar.xz) = 4797752
(-)a/devel/glib20/files/patch-glib_glib-unix.c (-63 lines)
Removed Link Here
1
--- glib/glib-unix.c.orig	2021-09-17 10:17:56 UTC
2
+++ glib/glib-unix.c
3
@@ -463,7 +463,6 @@ g_unix_get_passwd_entry (const gchar  *user_name,
4
     } *buffer = NULL;
5
   gsize string_buffer_size = 0;
6
   GError *local_error = NULL;
7
-  int errsv = 0;
8
 
9
   g_return_val_if_fail (user_name != NULL, NULL);
10
   g_return_val_if_fail (error == NULL || *error == NULL, NULL);
11
@@ -493,10 +492,8 @@ g_unix_get_passwd_entry (const gchar  *user_name,
12
        */
13
       buffer = g_malloc0 (sizeof (*buffer) + string_buffer_size + 6);
14
 
15
-      errno = 0;
16
       retval = getpwnam_r (user_name, &buffer->pwd, buffer->string_buffer,
17
                            string_buffer_size, &passwd_file_entry);
18
-      errsv = errno;
19
 
20
       /* Bail out if: the lookup was successful, or if the user id can't be
21
        * found (should be pretty rare case actually), or if the buffer should be
22
@@ -508,19 +505,19 @@ g_unix_get_passwd_entry (const gchar  *user_name,
23
           break;
24
         }
25
       else if (retval == 0 ||
26
-          errsv == ENOENT || errsv == ESRCH ||
27
-          errsv == EBADF || errsv == EPERM)
28
+          retval == ENOENT || retval == ESRCH ||
29
+          retval == EBADF || retval == EPERM)
30
         {
31
           /* Username not found. */
32
-          g_unix_set_error_from_errno (&local_error, errsv);
33
+          g_unix_set_error_from_errno (&local_error, retval);
34
           break;
35
         }
36
-      else if (errsv == ERANGE)
37
+      else if (retval == ERANGE)
38
         {
39
           /* Can’t allocate enough string buffer space. */
40
           if (string_buffer_size > 32 * 1024)
41
             {
42
-              g_unix_set_error_from_errno (&local_error, errsv);
43
+              g_unix_set_error_from_errno (&local_error, retval);
44
               break;
45
             }
46
 
47
@@ -529,7 +526,7 @@ g_unix_get_passwd_entry (const gchar  *user_name,
48
         }
49
       else
50
         {
51
-          g_unix_set_error_from_errno (&local_error, errsv);
52
+          g_unix_set_error_from_errno (&local_error, retval);
53
           break;
54
         }
55
     }
56
@@ -543,7 +540,6 @@ g_unix_get_passwd_entry (const gchar  *user_name,
57
     {
58
       g_clear_pointer (&buffer, g_free);
59
       g_propagate_error (error, g_steal_pointer (&local_error));
60
-      errno = errsv;
61
     }
62
 
63
   return (struct passwd *) g_steal_pointer (&buffer);

Return to bug 259513