mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
Anonymous inode!
This commit is contained in:
@@ -15,8 +15,8 @@ int main(int argc, char **argv)
|
||||
int fd, arg_int, ret;
|
||||
lkmc_ioctl_struct arg_struct;
|
||||
|
||||
if (argc < 4) {
|
||||
puts("Usage: ./prog <ioctl-file> <cmd> <arg>");
|
||||
if (argc < 2) {
|
||||
puts("Usage: ./prog <ioctl-file>");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
fd = open(argv[1], O_RDONLY);
|
||||
|
||||
Reference in New Issue
Block a user