Skip to content
Snippets Groups Projects
Select Git revision
  • ab10be9f50077e32d6ae0cba5d761a3da9188dc5
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

0004-busybox-enable-telnet-only-when-root-password-is-really-empty-not-when-it-is-locked.patch

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    0004-busybox-enable-telnet-only-when-root-password-is-really-empty-not-when-it-is-locked.patch 903 B
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Fri, 5 Dec 2014 18:57:16 +0100
    Subject: busybox: enable telnet only when root password is really empty, not when it is locked
    
    diff --git a/package/utils/busybox/files/telnet b/package/utils/busybox/files/telnet
    index a1d1cdf..f95be90 100755
    --- a/package/utils/busybox/files/telnet
    +++ b/package/utils/busybox/files/telnet
    @@ -11,7 +11,7 @@ has_root_pwd() {
     	      pwd="${pwd#*root:}"
     	      pwd="${pwd%%:*}"
     
    -	test -n "${pwd#[\!x]}"
    +	test -n "${pwd}"
     }
     
     get_root_home() {
    @@ -28,7 +28,7 @@ has_ssh_pubkey() {
     
     start_service() {
     	if ( ! has_ssh_pubkey && \
    -	     ! has_root_pwd /etc/passwd && ! has_root_pwd /etc/shadow ) || \
    +	   ( ! has_root_pwd /etc/passwd || ! has_root_pwd /etc/shadow ) ) || \
     	   ( ! /etc/init.d/dropbear enabled 2> /dev/null && ! /etc/init.d/sshd enabled 2> /dev/null );
     	then
     		procd_open_instance