Compare commits
No commits in common. "7c796a567fecc60477383dd3ef7edcfce6cd1b8b" and "aeee552947d71be8ca30f88b844e997fafed6e91" have entirely different histories.
7c796a567f
...
aeee552947
3 changed files with 3 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
.clangd
|
||||||
|
|
||||||
*.o
|
*.o
|
||||||
|
|
||||||
feuille
|
feuille
|
||||||
|
|
|
@ -270,11 +270,6 @@ int main(int argc, char *argv[])
|
||||||
daemon(1, 0);
|
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 */
|
/* chroot and drop root permissions */
|
||||||
if (getuid() == 0) {
|
if (getuid() == 0) {
|
||||||
|
|
2
server.c
2
server.c
|
@ -221,7 +221,7 @@ char *read_paste(int connection)
|
||||||
if (total_size == 0) {
|
if (total_size == 0) {
|
||||||
/* yup, free the buffer and return an error */
|
/* yup, free the buffer and return an error */
|
||||||
if (errno != EAGAIN)
|
if (errno != EAGAIN)
|
||||||
errno = ENOENT;
|
errno = ENOENT;
|
||||||
|
|
||||||
free(buffer);
|
free(buffer);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Reference in a new issue