summaryrefslogtreecommitdiff
path: root/x11/launch.app/files/patch-execute.c
blob: 04ecd3a982e28e4c766f16ddae71408e953fb228 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$FreeBSD$

--- execute.c	2001/08/20 09:08:11	1.1
+++ execute.c	2001/08/20 09:09:29
@@ -157,13 +157,13 @@
 	pid = fork ();
 	if (pid == 0)
 	{
-		if (setuid (pw->pw_gid))
+		if (setgid (pw->pw_gid))
 		{
 			fprintf (stderr, "unable to set group id\n");
 		}
-		if (setgid (pw->pw_uid))
+		if (setuid (pw->pw_uid))
 		{
-			fprintf (stderr, "unable to set group id\n");
+			fprintf (stderr, "unable to set user id\n");
 		}
 		setenv ("HOME", pw->pw_dir, 1);
 		setenv ("USER", pw->pw_name, 1);