remove unintended commit of issue-code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3502 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1329,20 +1329,6 @@ void start_login(char *host, int autologin, char *name)
|
|||||||
* USER value will be wrong.
|
* USER value will be wrong.
|
||||||
*/
|
*/
|
||||||
unsetenv("USER");
|
unsetenv("USER");
|
||||||
{
|
|
||||||
FILE *f;
|
|
||||||
char buf[1024];
|
|
||||||
if((f = fopen("/etc/issue.net", "r")) ||
|
|
||||||
(f = fopen("/etc/issue", "r"))){
|
|
||||||
while(fgets(buf, sizeof(buf) - 1, f)){
|
|
||||||
char *p = buf + strlen(buf) - 1;
|
|
||||||
if(p[0] == '\n' && (p == buf || p[-1] != '\r'))
|
|
||||||
strcpy(p, "\r\n");
|
|
||||||
fputs(buf, stdout);
|
|
||||||
}
|
|
||||||
fclose(f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
closelog();
|
closelog();
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user