Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 2004 10:37:43 -0700 (PDT)
From:      Andrew Reisse <areisse@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 52232 for review
Message-ID:  <200405041737.i44HbhCr033706@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

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

Change 52232 by areisse@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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405041737.i44HbhCr033706>