/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 211 by matthewc, Fri Oct 4 14:28:14 2002 UTC revision 213 by matthewc, Sun Oct 6 13:30:30 2002 UTC
# Line 60  usage(char *program) Line 60  usage(char *program)
60          fprintf(stderr, "   -s: shell\n");          fprintf(stderr, "   -s: shell\n");
61          fprintf(stderr, "   -c: working directory\n");          fprintf(stderr, "   -c: working directory\n");
62          fprintf(stderr, "   -p: password (- to prompt)\n");          fprintf(stderr, "   -p: password (- to prompt)\n");
         fprintf(stderr, "   -P: askpass-program (autologon)\n");  
63          fprintf(stderr, "   -n: client hostname\n");          fprintf(stderr, "   -n: client hostname\n");
64          fprintf(stderr, "   -k: keyboard layout on terminal server (us,sv,gr etc.)\n");          fprintf(stderr, "   -k: keyboard layout on terminal server (us,sv,gr etc.)\n");
65          fprintf(stderr, "   -g: desktop geometry (WxH)\n");          fprintf(stderr, "   -g: desktop geometry (WxH)\n");
# Line 117  main(int argc, char *argv[]) Line 116  main(int argc, char *argv[])
116          char fullhostname[64];          char fullhostname[64];
117          char domain[16];          char domain[16];
118          char password[16];          char password[16];
         char *askpass_result;  
119          char shell[32];          char shell[32];
120          char directory[32];          char directory[32];
121          BOOL prompt_password;          BOOL prompt_password;
# Line 131  main(int argc, char *argv[]) Line 129  main(int argc, char *argv[])
129          domain[0] = password[0] = shell[0] = directory[0] = 0;          domain[0] = password[0] = shell[0] = directory[0] = 0;
130          strcpy(keymapname, "us");          strcpy(keymapname, "us");
131    
132          while ((c = getopt(argc, argv, "u:d:s:c:p:P:n:k:g:t:fbemlKw:h?")) != -1)          while ((c = getopt(argc, argv, "u:d:s:c:p:n:k:g:t:fbemlKw:h?")) != -1)
133          {          {
134                  switch (c)                  switch (c)
135                  {                  {
# Line 167  main(int argc, char *argv[]) Line 165  main(int argc, char *argv[])
165                                          *(p++) = 'X';                                          *(p++) = 'X';
166                                  break;                                  break;
167    
                         case 'P':  
                                 askpass_result = askpass(optarg, "Enter password");  
                                 if (askpass_result == NULL)  
                                         exit(1);  
   
                                 STRNCPY(password, askpass_result, sizeof(password));  
                                 free(askpass_result);  
                                 flags |= RDP_LOGON_AUTO;  
                                 break;  
   
168                          case 'n':                          case 'n':
169                                  STRNCPY(hostname, optarg, sizeof(hostname));                                  STRNCPY(hostname, optarg, sizeof(hostname));
170                                  break;                                  break;

Legend:
Removed from v.211  
changed lines
  Added in v.213

  ViewVC Help
Powered by ViewVC 1.1.26