fix: noconfirm auto-selects first AUR match

This commit is contained in:
2026-05-08 11:01:02 +01:00
parent d39cdc3fd9
commit 153cca6132
8056 changed files with 1983098 additions and 779 deletions
@@ -0,0 +1,26 @@
#include <errno.h>
#include <stdio.h>
int main(int argc, char **argv) {
char buf[1024];
size_t len;
FILE *fh;
if (argc != 2) {
fprintf(stderr, "Incorrect number of arguments, got %i\n", argc);
return 1;
}
fh = fopen(argv[1], "r");
if (fh == NULL) {
fprintf(stderr, "Opening %s: errno=%i\n", argv[1], errno);
return 1;
}
do {
len = fread(buf, 1, sizeof(buf), fh);
if (len > 0) {
fwrite(buf, 1, len, stdout);
}
} while (len > 0);
fclose(fh);
return 0;
}