CVS patchset: 1131
CVS date: 1996/10/22 22:32:20
name = "anonymous";
if (!password) {
- pw = getpwuid(getuid());
- password = alloca(strlen(pw->pw_name) + 2);
- strcpy(password, pw->pw_name);
- strcat(password, "@");
+ if (getuid()) {
+ pw = getpwuid(getuid());
+ password = alloca(strlen(pw->pw_name) + 2);
+ strcpy(password, pw->pw_name);
+ strcat(password, "@");
+ } else {
+ password = "root@";
+ }
}
if (proxy) {