PERFORCE change 52232 for review

Andrew Reisse areisse at FreeBSD.org
Tue May 4 10:37:45 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=52232

Change 52232 by areisse at areisse_ibook on 2004/05/04 10:37:17

	Temporarily disable using the domain chooser due to it not
	working correctly.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin73/sebsd_system/wslogin/wslogin.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin73/sebsd_system/wslogin/wslogin.c#2 (text+ko) ====

@@ -86,6 +86,7 @@
       if (get_ordered_context_list(username, NULL, &contexts,
 				   &ncontexts) != 0 || ncontexts == 0)
 	errexit ("Getting context list for %s: %s", username, strerror (errno));
+#if 0
       int retries = 3;
       const char *wexe = "/System/Library/CoreServices/wsloginui.app/Contents/MacOS/wsloginui"; 
       size_t warglen = strlen (wexe);
@@ -125,6 +126,9 @@
 	}
       else
 	queried = contexts[r];
+#else
+      queried = contexts[0];
+#endif
 
       if (asprintf(&labeltext, "sebsd/%s", queried) == -1 ||
 	  mac_from_text(&execlabel, labeltext) != 0)
@@ -138,7 +142,10 @@
     }
 
   if (mac_set_proc (execlabel))
+  {
+    errexit ("error changing process label: %s", strerror(errno));
     kill (getppid (), 15);
+  }
   return 0;
 }
 


More information about the p4-projects mailing list