File frozen-bubble-2.212-unused-result.patch of Package frozen-bubble

diff -Naur frozen-bubble-2.212.orig/server/tools.c frozen-bubble-2.212/server/tools.c
--- frozen-bubble-2.212.orig/server/tools.c	2012-10-24 19:53:38.000000000 +0200
+++ frozen-bubble-2.212/server/tools.c	2012-12-20 10:08:37.398020046 +0100
@@ -261,8 +261,12 @@
         if (user_to_switch != NULL) {
                 struct passwd* user = getpwnam(user_to_switch);
                 if (user) {
-                        setgid(user->pw_gid);
-                        setuid(user->pw_uid);
+                        if(setgid(user->pw_gid) == -1) {
+				printf("failed to set gid\n");
+			}
+                        if(setuid(user->pw_uid) == -1) {
+				printf("failed to set uid\n");
+			}
                 } else {
                         l2(OUTPUT_TYPE_ERROR, "Cannot switch user to %s: %s", user_to_switch, strerror(errno));
                 }