From: nishi Date: Sat, 11 May 2024 01:04:38 +0000 (+0000) Subject: gonan fix X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=d1a0485c0fca613febfab7c3ab0fcda46377bb00;p=mandshurica.git gonan fix git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@75 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- diff --git a/Mandshurica/config.c b/Mandshurica/config.c index 00535e4..5524d31 100644 --- a/Mandshurica/config.c +++ b/Mandshurica/config.c @@ -212,7 +212,8 @@ int mandshurica_create_config(const char* path) { fprintf(f, "ServerRoot %s\n", PREFIX); fprintf(f, "\n"); fprintf(f, "Set LoginDB %s/login.db\n", PREFIX); - fprintf(f, "Set CookieDB %s/passwd.db\n", PREFIX); + fprintf(f, "Set CookieDB %s/cookie.db\n", PREFIX); + fprintf(f, "Set ProjectDB %s/project.db\n", PREFIX); fprintf(f, "Set HTTPPort 1024\n"); fprintf(f, "Set HTTPRoot %s\n", WEBROOT_PREFIX); fprintf(f, "Set HTMLManage %s/html-manage\n", TOOL_PREFIX); diff --git a/Tool/html-manage.c b/Tool/html-manage.c index fae0cbc..b927d8d 100644 --- a/Tool/html-manage.c +++ b/Tool/html-manage.c @@ -6,7 +6,8 @@ int main(int argc, char** argv){ if(argc < 2){ - printf("invalid usage\n"); + fprintf(stderr, "invalid usage\n"); + return 1; } printf("%s\n", argv[1]); }