mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
tests: appimage: fix whitespace
This amends commit ed89f7c32 ("update make test-appimage - the test
script doesn't work anymore on Debian version 13; I had to replace the
program packaged, and generate a new appimage", 2025-12-29).
Relates to #7007.
This commit is contained in:
parent
1a96bb70fc
commit
e8ffcc962b
1 changed files with 4 additions and 6 deletions
|
|
@ -7,14 +7,12 @@
|
|||
|
||||
int main(int argc, char **argv) {
|
||||
printf("Hello, Firejail!\n");
|
||||
|
||||
|
||||
// test args
|
||||
int i;
|
||||
for (i = 1; i < argc; i++)
|
||||
printf("%d - %s\n", i, argv[i]);
|
||||
|
||||
|
||||
|
||||
char *cont = getenv("container");
|
||||
if (cont)
|
||||
printf("\n*** container %s ***\n", cont);
|
||||
|
|
@ -31,7 +29,7 @@ int main(int argc, char **argv) {
|
|||
char *ptr = strchr(buf, '\n');
|
||||
if (ptr)
|
||||
*ptr = '\0';
|
||||
|
||||
|
||||
if (strncmp(buf, "NoNewPrivs:", 11) == 0) {
|
||||
ptr = buf + 11;
|
||||
while (*ptr == ' ' || *ptr == '\t')
|
||||
|
|
@ -39,7 +37,7 @@ int main(int argc, char **argv) {
|
|||
printf("*** NoNewPrivs %s ***\n", ptr);
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
|
||||
if (strncmp(buf, "Seccomp:", 8) == 0) {
|
||||
ptr = buf + 8;
|
||||
while (*ptr == ' ' || *ptr == '\t')
|
||||
|
|
@ -49,6 +47,6 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue