cfile = fopen(buf, "r");
if (cfile == NULL) {
if (errno != ENOENT)
- printf("%s", buf);
+ __printf("%s", buf);
return (0);
}
/* No threads use this stream. */
newp = malloc((unsigned) __strlen(tokval) + 1);
if (newp == NULL)
{
- printf(_("out of memory"));
+ __printf(_("out of memory"));
goto bad;
}
*aname = __strcpy(newp, tokval);
if (__strcmp(*aname, "anonymous") &&
fstat(fileno(cfile), &stb) >= 0 &&
(stb.st_mode & 077) != 0) {
- printf(_("Error: .netrc file is readable by others."));
- printf(_("Remove password or make file unreadable by others."));
+ __printf(_("Error: .netrc file is readable by others."));
+ __printf(_("Remove password or make file unreadable by others."));
goto bad;
}
if (token() && *apass == 0) {
newp = malloc((unsigned) __strlen(tokval) + 1);
if (newp == NULL)
{
- printf(_("out of memory"));
+ __printf(_("out of memory"));
goto bad;
}
*apass = __strcpy(newp, tokval);
#if 0
if (fstat(fileno(cfile), &stb) >= 0
&& (stb.st_mode & 077) != 0) {
- printf("Error: .netrc file is readable by others.");
- printf("Remove account or make file unreadable by others.");
+ __printf("Error: .netrc file is readable by others.");
+ __printf("Remove account or make file unreadable by others.");
goto bad;
}
if (token() && *aacct == 0) {
while ((c=getc_unlocked(cfile)) != EOF && c == ' '
|| c == '\t');
if (c == EOF || c == '\n') {
- printf("Missing macdef name argument.\n");
+ __printf("Missing macdef name argument.\n");
goto bad;
}
if (macnum == 16) {
- printf("Limit of 16 macros have already been defined\n");
+ __printf("Limit of 16 macros have already been defined\n");
goto bad;
}
tmp = macros[macnum].mac_name;
*tmp++ = c;
}
if (c == EOF) {
- printf("Macro definition missing null line terminator.\n");
+ __printf("Macro definition missing null line terminator.\n");
goto bad;
}
*tmp = '\0';
&& c != '\n');
}
if (c == EOF) {
- printf("Macro definition missing null line terminator.\n");
+ __printf("Macro definition missing null line terminator.\n");
goto bad;
}
if (macnum == 0) {
tmp = macros[macnum].mac_start;
while (tmp != macbuf + 4096) {
if ((c=getc_unlocked(cfile)) == EOF) {
- printf("Macro definition missing null line terminator.\n");
+ __printf("Macro definition missing null line terminator.\n");
goto bad;
}
*tmp = c;
tmp++;
}
if (tmp == macbuf + 4096) {
- printf("4K macro buffer exceeded\n");
+ __printf("4K macro buffer exceeded\n");
goto bad;
}
#endif
break;
default:
- printf(_("Unknown .netrc keyword %s"), tokval);
+ __printf(_("Unknown .netrc keyword %s"), tokval);
break;
}
goto done;