Consistent Error checking for group_admin_perm
Signed-off-by: SanjayKumar J <[EMAIL PROTECTED]>
Index: config.c
===================================================================
--- config.c (revision 225)
+++ config.c (working copy)
@@ -237,7 +237,7 @@
error = getpwnam_r(value, pw, buffer, CGROUP_BUFFER_LEN,
&pw_buffer);
- if (error) {
+ if (pw_buffer == NULL) {
free(pw);
goto admin_error;
}
@@ -258,7 +258,7 @@
error = getgrnam_r(value, group, buffer,
CGROUP_BUFFER_LEN, &group_buffer);
- if (error) {
+ if (group_buffer == NULL) {
free(group);
goto admin_error;
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel