/[rdesktop]/sourceforge.net/trunk/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/trunk/rdesktop/rdesktop.c

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

revision 280 by n-ki, Tue Nov 26 14:39:50 2002 UTC revision 289 by astrand, Thu Jan 16 13:48:02 2003 UTC
# Line 137  main(int argc, char *argv[]) Line 137  main(int argc, char *argv[])
137          uint32 flags;          uint32 flags;
138          char *p;          char *p;
139          int c;          int c;
140            int username_option = 0;
141    
142          flags = RDP_LOGON_NORMAL;          flags = RDP_LOGON_NORMAL;
143          prompt_password = False;          prompt_password = False;
# Line 149  main(int argc, char *argv[]) Line 150  main(int argc, char *argv[])
150                  {                  {
151                          case 'u':                          case 'u':
152                                  STRNCPY(username, optarg, sizeof(username));                                  STRNCPY(username, optarg, sizeof(username));
153                                    username_option = 1;
154                                  break;                                  break;
155    
156                          case 'd':                          case 'd':
# Line 259  main(int argc, char *argv[]) Line 261  main(int argc, char *argv[])
261                  *p = 0;                  *p = 0;
262          }          }
263    
264          if (username[0] == 0)          if (!username_option)
265          {          {
266                  pw = getpwuid(getuid());                  pw = getpwuid(getuid());
267                  if ((pw == NULL) || (pw->pw_name == NULL))                  if ((pw == NULL) || (pw->pw_name == NULL))

Legend:
Removed from v.280  
changed lines
  Added in v.289

  ViewVC Help
Powered by ViewVC 1.1.26