]> git.saurik.com Git - apple/hfs.git/commitdiff
hfs-116.12.tar.gz mac-os-x-1023 mac-os-x-1024 v116.12
authorApple <opensource@apple.com>
Sat, 16 Nov 2002 02:08:20 +0000 (02:08 +0000)
committerApple <opensource@apple.com>
Sat, 16 Nov 2002 02:08:20 +0000 (02:08 +0000)
hfs_util/hfsutil_main.c

index e500d0602e84b0dc8f36302870909142b4d3bcfd..4b0520203cf0c5c1c9a253cfa750387949b48a53 100644 (file)
@@ -257,15 +257,6 @@ int main (int argc, const char *argv[])
 
     /* call the appropriate routine to handle the given action argument after becoming root */
 
-    result = seteuid( 0 );
-    if ( result ) {
-               fprintf(stderr, "You must be root to run %s.\n", argv[0]);
-        result = FSUR_INVAL;
-        goto AllDone;
-    }
-
-    result = setegid( 0 );     // PPD - is this necessary?
-
     switch( * actionPtr ) {
         case FSUC_PROBE:
             result = DoProbe(rawDeviceName);