[apparmor] [PATCH] remove unused file descriptor from mknod regression test
Kees Cook
kees at ubuntu.com
Mon Jul 26 07:29:48 BST 2010
This fd wasn't being used at all...
=== modified file 'tests/regression/subdomain/syscall_mknod.c'
--- tests/regression/subdomain/syscall_mknod.c 2006-05-19 17:32:14 +0000
+++ tests/regression/subdomain/syscall_mknod.c 2010-07-24 13:05:25 +0000
@@ -19,7 +19,7 @@
int main(int argc, char *argv[])
{
-int fd, mode;
+ int mode;
if (argc != 3){
fprintf(stderr, "usage: %s b|c|f|s|r file\n",
@@ -49,8 +49,6 @@
return 1;
}
- close(fd);
-
printf("PASS\n");
return 0;
--
Kees Cook
Ubuntu Security Team
More information about the AppArmor
mailing list