schedule:
- cron: "0 */6 * * *"
-concurrency:
- group: "pages"
- cancel-in-progress: true
-
jobs:
- deploy-pages:
-
- name: "Deploy pages"
-
- runs-on: ubuntu-latest
-
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
-
- permissions:
- contents: write
- pages: write
- id-token: write
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Install packages
- run: sudo apt-get install zip byacc flex doxygen graphviz
- - name: Make sure it is clean
- run: make clean
- - name: Make for Linux 64-bit
- run: make YACC=byacc -j3
- - name: Setup Pages
- uses: actions/configure-pages@v4
- - name: Upload pages
- uses: actions/upload-pages-artifact@v3
- with:
- path: "Document/doc/html"
- - name: Deploy
- uses: actions/deploy-pages@v4
-
- build-amiga:
+ build-amiga:
name: "Build for Amiga"
--- /dev/null
+name: Deploy pages
+
+on:
+ workflow_dispatch:
+ push:
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: true
+
+jobs:
+ deploy-pages:
+
+ name: "Deploy pages"
+
+ runs-on: ubuntu-latest
+
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+
+ permissions:
+ contents: write
+ pages: write
+ id-token: write
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Install packages
+ run: sudo apt-get install zip byacc flex doxygen graphviz
+ - name: Make sure it is clean
+ run: make clean
+ - name: Make for Linux 64-bit
+ run: make YACC=byacc -j3
+ - name: Setup Pages
+ uses: actions/configure-pages@v4
+ - name: Upload pages
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: "Document/doc/html"
+ - name: Deploy
+ uses: actions/deploy-pages@v4
char* readline_sock(int sock);
void disconnect(int sock);
+FILE* flog;
+
void protocol_init(int sock) {
/* sock is ignored on hayes */
char* tmp;
if(strcmp(entries[j]->pass, buf + i + 1) == 0) {
writeline(sock, "LOGIN");
login = true;
- printf("User %s is in\n", user);
+ fprintf(flog, "User %s is in\n", user);
break;
} else {
writeline(sock, "ERROR:INVALID_PASSWORD");
}
free(buf);
}
+ if(user != NULL) fprintf(flog, "User %s disconnected\n", user);
}
void exitnow(int sig) {
#endif
}
-FILE* flog;
-
int rescan(void) {
if(entries != NULL) {
fprintf(flog, "Rescan...\n");