Browse Subversion Repository
Diff of /tags/REL-1.1/ftpauth.c
Parent Directory
| Revision Log
| Patch
| 73 |
|
|
| 74 |
auth = malloc(strlen("USER ")+strlen(usr)+2); |
auth = malloc(strlen("USER ")+strlen(usr)+2); |
| 75 |
|
|
| 76 |
sprintf(auth, "%s %s\n", "USER", usr); |
sprintf(auth, "%s %s\r\n", "USER", usr); |
| 77 |
|
|
| 78 |
if (write(sck, auth, strlen(auth)) == -1) { |
if (write(sck, auth, strlen(auth)) == -1) { |
| 79 |
|
|
| 175 |
|
|
| 176 |
auth = malloc(strlen("PASS ")+strlen(pwd)+2); |
auth = malloc(strlen("PASS ")+strlen(pwd)+2); |
| 177 |
|
|
| 178 |
sprintf(auth, "%s %s\n", "PASS", pwd); |
sprintf(auth, "%s %s\r\n", "PASS", pwd); |
| 179 |
|
|
| 180 |
if (write(sck, auth, strlen(auth)) == -1) { |
if (write(sck, auth, strlen(auth)) == -1) { |
| 181 |
|
|
|
|
Legend:
| Removed from v.7 |
|
| changed lines |
| |
Added in v.11 |
|
|
| |