From d1a0485c0fca613febfab7c3ab0fcda46377bb00 Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 11 May 2024 01:04:38 +0000 Subject: [PATCH] gonan fix git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@75 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- Mandshurica/config.c | 3 ++- Tool/html-manage.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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]); } -- 2.43.0