diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2007-09-20 23:19:27 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2007-09-20 23:19:27 +0000 |
commit | 2558c74bc0eb805b34efb7955da407aaba9c58ca (patch) | |
tree | 4b2617411bb325b4a9b65fa977ecec29255c4e3c /net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch | |
parent | dev-lang/mono-1.2.5.1: version bump (diff) | |
download | gentoo-2-2558c74bc0eb805b34efb7955da407aaba9c58ca.tar.gz gentoo-2-2558c74bc0eb805b34efb7955da407aaba9c58ca.tar.bz2 gentoo-2-2558c74bc0eb805b34efb7955da407aaba9c58ca.zip |
Remove vulnerable NX 2.1 versions, security bug #192712
(Portage version: 2.1.3.9)
Diffstat (limited to 'net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch')
-rw-r--r-- | net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch b/net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch deleted file mode 100644 index 7cb87125fcec..000000000000 --- a/net-misc/nxserver-freeedition/files/nxserver-2.1.0-setup.patch +++ /dev/null @@ -1,70 +0,0 @@ ---- scripts/setup/nxserver.orig 2006-11-05 16:43:33.000000000 +0000 -+++ scripts/setup/nxserver 2006-11-05 17:29:42.000000000 +0000 -@@ -509,6 +509,10 @@ - - removeNXinit () { - -+ if [ "$system" = "gentoo" ]; then -+ return -+ fi -+ - runCommand "$RMCOMMAND -f /etc/init.d/nxserver" "Unable to remove '/etc/init.d/nxserver'" "warn" - - if [ "$system" = "solaris" ]; -@@ -655,6 +659,10 @@ - - addNXinit () { - -+ if [ "$system" = "gentoo" ]; then -+ return -+ fi -+ - runCommand "cat /usr/NX/scripts/init/nxserver > /etc/init.d/nxserver" "Unable to create: '/etc/init.d/nxserver'" "warn" - runCommand "chmod +x /etc/init.d/nxserver" "Cannot set permissions of '/etc/init.d/nxserver' file" "warn" - -@@ -770,6 +778,11 @@ - - addNXUserLinux () { - -+ # does the NX user already exist? -+ if id nx > /dev/null 2>&1 ; then -+ return -+ fi -+ - if [ "x$system" = "xmandrake" -o "x$system" = "xfedora" ]; - then - runCommand "useradd -p '*' -d '$NODE_ROOT/home/nx' -M nx" "Cannot add user: nx to the system" "error" -@@ -1914,6 +1927,10 @@ - system=fedora - fi - -+if [ -d /usr/portage ]; then -+ system=gentoo -+fi -+ - if [ "x$system" = "x" -a -f /etc/release ]; - then - system=solaris -@@ -1948,6 +1965,7 @@ - "mandrake" ) ;; - "fedora" ) ;; - "debian" ) ;; -+ "gentoo" ) ;; - "solaris" ) ;; - "" ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unable to autodetect the operating system type, please specify it" ;; - * ) ARGS=-1 && errMsg="$PREFIX $ERROR ERROR: Unsupported operating system '$system'" ;; -@@ -2104,14 +2122,6 @@ - return 0 - fi - -- result=`id nx 2>&1` -- if [ $? = 0 ]; -- then -- printMsg "Cannot add user: nx. User: nx already exists" "error" -- printMsg "Please try to fix the problem by reinstalling the server" "error" -- exit 1 -- fi -- - LOGFILE="$INSTALLOG" - createLogdirectory - startLog |