summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch')
-rw-r--r--net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch b/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch
new file mode 100644
index 0000000..773ef3a
--- /dev/null
+++ b/net-misc/nxserver-freenx/files/freenx-0.4.4-adduser-fix.patch
@@ -0,0 +1,16 @@
+diff -purN freenx-0.4.4.org/nxsetup freenx-0.4.4.new/nxsetup
+--- freenx-0.4.4.org/nxsetup 2005-08-02 12:29:59.000000000 -0500
++++ freenx-0.4.4.new/nxsetup 2005-08-07 19:17:08.000000000 -0500
+@@ -116,7 +116,11 @@ useradd_nx()
+ # no, its a "normal" useradd
+ else
+ USERADD_OPTIONS="-d $NX_HOME_DIR -s $PATH_BIN/nxserver"
+- [ -n $SETUP_GID ] && USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS"
++ # gid specified?
++ if [ -n "$SETUP_GID" ]
++ then
++ USERADD_OPTIONS="-g $SETUP_GID $USERADD_OPTIONS"
++ fi
+ # uid specified?
+ if [ -n "$SETUP_UID" ]
+ then