Compare commits

..

No commits in common. "7c796a567fecc60477383dd3ef7edcfce6cd1b8b" and "aeee552947d71be8ca30f88b844e997fafed6e91" have entirely different histories.

3 changed files with 3 additions and 6 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.clangd
*.o
feuille

View file

@ -270,11 +270,6 @@ int main(int argc, char *argv[])
daemon(1, 0);
}
/* ignore most signals that could kill feuille */
verbose(3, "ignoring signals that could kill feuille...");
signal(SIGPIPE, SIG_IGN); /* when send(2) or write(2) fails */
/* chroot and drop root permissions */
if (getuid() == 0) {

View file

@ -221,7 +221,7 @@ char *read_paste(int connection)
if (total_size == 0) {
/* yup, free the buffer and return an error */
if (errno != EAGAIN)
errno = ENOENT;
errno = ENOENT;
free(buffer);
return NULL;