OSDN Git Service

du: 32 bit systems were maxing out at 2GB when they should max out at 2TB
[android-x86/external-toybox.git] / main.c
diff --git a/main.c b/main.c
index 6dd4cea..cf82872 100644 (file)
--- a/main.c
+++ b/main.c
@@ -107,7 +107,7 @@ void toy_init(struct toy_list *which, char *argv[])
 
     if (!(which->flags & TOYFLAG_STAYROOT)) {
       if (uid != euid) {
-        if (!setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root
+        if (setuid(uid)) perror_exit("setuid %d->%d", euid, uid); // drop root
         euid = uid;
         toys.wasroot++;
       }