Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
corosync.6022
0008-do-not-convert-empty-uid-gid-to-0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0008-do-not-convert-empty-uid-gid-to-0.patch of Package corosync.6022
From df7d4572a7995907b3cf0f279a757ad2d8c5a627 Mon Sep 17 00:00:00 2001 From: Bin Liu <bliu@suse.com> Date: Mon, 6 Nov 2017 16:59:30 +0800 Subject: [PATCH] do not convert empty uid, gid to 0 --- exec/coroparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/coroparse.c b/exec/coroparse.c index 374ed7dd..2777a632 100644 --- a/exec/coroparse.c +++ b/exec/coroparse.c @@ -140,7 +140,7 @@ static int uid_determine (const char *req_user) char *ep; id = strtol(req_user, &ep, 10); - if (*ep == '\0' && id >= 0 && id <= UINT_MAX) { + if (*req_user != '\0' && *ep == '\0' && id >= 0 && id <= UINT_MAX) { return (id); } @@ -194,7 +194,7 @@ static int gid_determine (const char *req_group) char *ep; id = strtol(req_group, &ep, 10); - if (*ep == '\0' && id >= 0 && id <= UINT_MAX) { + if (*req_group != '\0' && *ep == '\0' && id >= 0 && id <= UINT_MAX) { return (id); } -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor