summaryrefslogtreecommitdiffstats
path: root/client/engine/Registry.lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/engine/Registry.lib')
-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