Skip to content
Snippets Groups Projects
  • Wolfgang Denk's avatar
    471a7be7
    Check for illegal character '=' in environment variable names. · 471a7be7
    Wolfgang Denk authored
    Make sure the string passed as variable name does not contain a '='
    character. This not only prevents the common error or typing
    "setenv foo=bar" instead of "setenv foo bar", but (more importantly)
    also closes a backdoor which allowed to delete write-protected
    environment variables, for example by using "setenv ethaddr=".
    471a7be7
    History
    Check for illegal character '=' in environment variable names.
    Wolfgang Denk authored
    Make sure the string passed as variable name does not contain a '='
    character. This not only prevents the common error or typing
    "setenv foo=bar" instead of "setenv foo bar", but (more importantly)
    also closes a backdoor which allowed to delete write-protected
    environment variables, for example by using "setenv ethaddr=".