summaryrefslogtreecommitdiff
path: root/x11/xfce4-utils/patches/patch-ab
blob: 31352f30591ff0deb87c3719e3642ca3db5e722a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.1 2006/03/20 06:29:09 martti Exp $

--- scripts/xinitrc.orig	2005-11-05 19:03:34.000000000 +0200
+++ scripts/xinitrc	2006-03-20 06:20:23.000000000 +0200
@@ -1,8 +1,17 @@
 #!/bin/sh
 
 # fix broken $UID on some system...
+OPSYS=`uname -s`
+case "$OPSYS" in
+	*SunOS*)
+		ID_EXEC=/usr/xpg4/bin/id
+		;;
+	*)
+		ID_EXEC=id
+		;;
+esac
 if test "x$UID" = "x"; then
-	UID=`id -u`
+	UID=`$ID_EXEC -u`
 fi
 
 # create temp file for X resources