writepasswd um ausgabe der subscription-id erweitert.

This commit is contained in:
Enno Rehling 2004-01-11 11:55:48 +00:00
parent 7af84866ed
commit eb08151447
3 changed files with 22 additions and 42 deletions

View File

@ -3703,3 +3703,25 @@ count_migrants (const faction * f)
#endif
return f->num_migrants;
}
int
writepasswd(void)
{
FILE * F;
char zText[128];
sprintf(zText, "%s/passwd", basepath());
F = cfopen(zText, "w");
if (F) {
faction *f;
puts("Schreibe Passwörter...");
for (f = factions; f; f = f->next) {
fprintf(F, "%s:%s:%s:%s:%u\n",
factionid(f), f->email, f->passw, f->override, f->subscription);
}
fclose(F);
return 0;
}
return 1;
}

View File

@ -248,26 +248,6 @@ writefactiondata(void)
}
#endif
static void
writepasswd(void)
{
FILE * F;
char zText[128];
sprintf(zText, "%s/passwd", basepath());
F = cfopen(zText, "w");
if (F) {
faction *f;
puts("Schreibe Passwörter...");
for (f = factions; f; f = f->next) {
fprintf(F, "%s:%s:%s:%s\n",
factionid(f), f->email, f->passw, f->override);
}
fclose(F);
}
}
#ifdef SHORTPWDS
static void
readshortpwds()

View File

@ -262,28 +262,6 @@ writefactiondata(void)
}
#endif
int
writepasswd(void)
{
FILE * F;
char zText[128];
sprintf(zText, "%s/passwd", basepath());
F = cfopen(zText, "w");
if (F) {
faction *f;
puts("Schreibe Passwörter...");
for (f = factions; f; f = f->next) {
fprintf(F, "%s:%s:%s:%s\n",
factionid(f), f->email, f->passw, f->override);
}
fclose(F);
return 0;
}
return 1;
}
#ifdef SHORTPWDS
static void
readshortpwds()