summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-06-28 07:37:54 +0000
committerramon <ramongomez@us.es>2011-06-28 07:37:54 +0000
commitb7c6827476a01a666ee829009781d256bd4007ae (patch)
tree67fa24f0426265ad3c54e87f232ae9036fa832ca
parenta7a957efaaecd7153386c375a8f1a911a6f99a5a (diff)
Corregir erratas en {{{Registry.lib}}}
git-svn-id: https://opengnsys.es/svn/trunk@2085 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xclient/engine/Registry.lib21
1 files changed, 11 insertions, 10 deletions
diff --git a/client/engine/Registry.lib b/client/engine/Registry.lib
index 437f5102..9ca6a0e4 100755
--- a/client/engine/Registry.lib
+++ b/client/engine/Registry.lib
@@ -42,7 +42,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Añadir nueva clave.
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
nk ${3##*\\}
q
@@ -89,12 +89,12 @@ case "$4" in
binary|BINARY) TYPE=3 ;;
dword|DWORD) TYPE=4 ;;
*) ogRaiseError $OG_ERR_OUTOFLIMIT "$4"
- exit $? ;;
+ return $? ;;
esac
# Devolver el dato del valor de registro.
# /* (comentario Doxygen)
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
nv $TYPE ${3##*\\}
q
@@ -138,7 +138,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Añadir nueva clave.
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
dk ${3##*\\}
q
@@ -180,7 +180,7 @@ FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver el dato del valor de registro.
# /* (comentario Doxygen)
-chntpw "$FILE" << EOT 2>/dev/null
+chntpw "$FILE" << EOT &> /dev/null
cd ${3%\\*}
dv ${3##*\\}
q
@@ -263,7 +263,7 @@ FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver el dato del valor de registro.
# /* (comentario Doxygen)
-chntpw "$FILE" << EOT 2>/dev/null | awk '/> Value/ {getline;print $0;}'
+chntpw "$FILE" << EOT 2> /dev/null | awk '/> Value/ {getline;print $0;}'
cd ${3%\\*}
cat ${3##*\\}
q
@@ -306,7 +306,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver la lista de claves de registro.
-chntpw "$FILE" << EOT 2>/dev/null | awk 'BEGIN {FS="[<>]"} $1~/^ $/ {print $2}'
+chntpw "$FILE" << EOT 2> /dev/null | awk 'BEGIN {FS="[<>]"} $1~/^ $/ {print $2}'
ls $3
q
EOT
@@ -346,7 +346,7 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Devolver la lista de claves de registro.
-chntpw "$FILE" << EOT 2>/dev/null | awk 'BEGIN {FS="[<>]"} $1~/REG_/ {print $2}'
+chntpw "$FILE" << EOT 2> /dev/null | awk 'BEGIN {FS="[<>]"} $1~/REG_/ {print $2}'
ls $3
q
EOT
@@ -387,8 +387,9 @@ fi
FILE=$(ogGetHivePath "$1" "$2") || return $?
# Cambiar el dato del valor de registro.
-chntpw "$FILE" << EOT &>/dev/null
-ed $3
+chntpw "$FILE" << EOT &> /dev/null
+cd ${3%\\*}
+ed ${3##*\\}
$4
q
y