[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better personae management for MiNT 1.11beta



Sascha Blank writes:

> 4th) Finally, you have to replace some files in the MiNTlibs, since the
> library doesn't handle the sete[ug]id() correctly and doesn't know about
> the setre[ug]id() calls. So put all four *.c files in your MiNTlib
> source tree, add two new targets sete[ug]id.o to the administration
> files (otherwise they won't appear in your library) and recompile. These
> files will also work correctly with older versions of MiNT. If a version
> prior to 1.11 is detected, the functions will fall back to their old
> behaviour.

I think there were some bugs in your library files.  After my .sig is
a patch.

Michael
-- 
Email: hohmuth@inf.tu-dresden.de
WWW:   http://www.inf.tu-dresden.de/~mh1/

diff -u ../../mint/sascha/setegid.c ./setegid.c
--- ../../mint/sascha/setegid.c	Mon Sep 12 17:33:13 1994
+++ ./setegid.c	Mon Sep 12 17:33:16 1994
@@ -20,7 +20,7 @@
 	return -1;
       }
     } else {
-      return (setuid (x));
+      return (setgid (x));
     }
   }
   return 0;
diff -u ../../mint/sascha/setregid.c ./setregid.c
--- ../../mint/sascha/setregid.c	Mon Aug 22 09:29:28 1994
+++ ./setregid.c	Mon Sep 12 17:38:55 1994
@@ -20,7 +20,7 @@
 	return -1;
       }
     } else {
-      return (setuid (rgid));
+      return (setgid (egid));
     }
   }
   return 0;
diff -u ../../mint/sascha/setreuid.c ./setreuid.c
--- ../../mint/sascha/setreuid.c	Mon Aug 22 09:29:32 1994
+++ ./setreuid.c	Mon Sep 12 17:39:33 1994
@@ -20,7 +20,7 @@
 	return -1;
       }
     } else {
-      return (setuid (ruid));
+      return (setuid (euid));
     }
   }
   return 0;