From b15149d09bfdc936731be5eb59d3a7444cf78a29 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 5 Feb 2006 23:54:23 +0000 Subject: [PATCH] redirect passwd stderr to stdout in webif SVN-Revision: 3154 --- openwrt/package/webif/files/usr/lib/webif/webif.sh | 2 +- openwrt/package/webif/files/www/cgi-bin/webif/password.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index 1a665a814f..4894954f37 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -121,7 +121,7 @@ EOF echo "$FORM_passwd1" sleep 1 echo "$FORM_passwd2" - ) | passwd root && apply_passwd + ) | passwd root 2>&1 && apply_passwd echo '' footer exit diff --git a/openwrt/package/webif/files/www/cgi-bin/webif/password.sh b/openwrt/package/webif/files/www/cgi-bin/webif/password.sh index 73967a0956..598964ff3f 100755 --- a/openwrt/package/webif/files/www/cgi-bin/webif/password.sh +++ b/openwrt/package/webif/files/www/cgi-bin/webif/password.sh @@ -16,7 +16,7 @@ EOF echo "$FORM_pw1" sleep 1 echo "$FORM_pw2" - ) | passwd root + ) | passwd root 2>&1 ) equal "$?" 0 || ERROR="
$RES
" } -- 2.30.2