Formerly mach/hurd/__setgid.c.~4~
authorroland <roland>
Thu, 2 Apr 1992 05:43:41 +0000 (05:43 +0000)
committerroland <roland>
Thu, 2 Apr 1992 05:43:41 +0000 (05:43 +0000)
sysdeps/mach/hurd/setgid.c

index f46e21d..cbfafb1 100644 (file)
@@ -70,17 +70,15 @@ DEFUN(__setgid, (gid), gid_t gid)
 
   _hurd_id.rgid = _hurd_id.gids[0];
 
-  if (err = _HURD_PORT_USE (&_hurd_auth,
-                           __auth_makeauth (port, &_hurd_id, &newauth)))
-    {
-      _hurd_id_valid = 0;
-      __mutex_unlock (&_hurd_idlock);
-      return __hurd_fail (err);
-    }
-  else
-    {
-      int err = __setauth (newauth);
-      __mach_port_deallocate (__mach_task_self (), newauth);
-      return err;
-    }
+  err = _HURD_PORT_USE (&_hurd_auth,
+                       __auth_makeauth (port, &_hurd_id, &newauth));
+  _hurd_id_valid = 0;
+  __mutex_unlock (&_hurd_idlock);
+
+  if (err)
+    return __hurd_fail (err);
+
+  err = __setauth (newauth);
+  __mach_port_deallocate (__mach_task_self (), newauth);
+  return err;
 }