]> Nishi Git Mirror - mandshurica.git/commitdiff
gonan fix
authornishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sat, 11 May 2024 01:04:38 +0000 (01:04 +0000)
committernishi <nishi@f982e544-4a7d-3444-ad1a-fde59a2a69f1>
Sat, 11 May 2024 01:04:38 +0000 (01:04 +0000)
git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@75 f982e544-4a7d-3444-ad1a-fde59a2a69f1

Mandshurica/config.c
Tool/html-manage.c

index 00535e41f5d7199e616f9ee370a8c71025db7635..5524d318a2ac5761749d9d4dad9f53b9eba10c1f 100644 (file)
@@ -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);
index fae0cbc826dfff5366edb0642ab9dd50d42a7178..b927d8d86a1694912467be3cb20413e54b61cee2 100644 (file)
@@ -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]);
 }