Changeset 11523


Ignore:
Timestamp:
Dec 12, 2010, 6:12:58 PM (12 years ago)
Author:
charles
Message:

#3763 (trunk, daemon) "remote should read auth info from an environment variable" -- use suggestion from Rolcol to replace TRAUTH with TR_AUTH

Location:
trunk/daemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r11522 r11523  
    256256    { 'M', "no-portmap",             "Disable portmapping", "M",  0, NULL },
    257257    { 'n', "auth",                   "Set username and password", "n",  1, "<user:pw>" },
    258     { 810, "authenv",                "Set authentication info from the TRAUTH environment variable (user:pw)", "ne", 0, NULL },
     258    { 810, "authenv",                "Set authentication info from the TR_AUTH environment variable (user:pw)", "ne", 0, NULL },
    259259    { 'N', "netrc",                  "Set authentication info from a .netrc file", "N",  1, "<file>" },
    260260    { 'o', "dht",                    "Enable distributed hash tables (DHT)", "o", 0, NULL },
     
    18281828                case 810: /* authenv */
    18291829                    {
    1830                         char *authenv = getenv("TRAUTH");
     1830                        char *authenv = getenv("TR_AUTH");
    18311831                        if( !authenv ) {
    1832                             fprintf( stderr, "The TRAUTH environment variable is not set\n" );
     1832                            fprintf( stderr, "The TR_AUTH environment variable is not set\n" );
    18331833                            exit( 0 );
    18341834                        }
  • trunk/daemon/transmission-remote.1

    r11521 r11523  
    175175.It Fl ne Fl -authenv
    176176Set the authentication information from the
    177 .Ar TRAUTH
     177.Ar TR_AUTH
    178178environment variable which must be formatted as
    179179.Ar username:password.
Note: See TracChangeset for help on using the changeset viewer.