Fixed iso_local_set_lfa_flags()

This commit is contained in:
Thomas Schmitt 2024-07-19 22:20:56 +02:00
parent d78028fca4
commit fbcacafb49

View File

@ -897,7 +897,7 @@ int aaip_set_lfa_flags(char *path, uint64_t lfa_flags, int max_bit,
ioctl_arg= 0;
else
ioctl_arg= lfa_flags;
ret= ioctl(fd, FS_IOC_SETFLAGS, ioctl_arg);
ret= ioctl(fd, FS_IOC_SETFLAGS, &ioctl_arg);
close(fd);
if(ret == -1) {
aaip_local_error("ioctl(FS_IOC_SETFLAGS)", path, errno, 0);
@ -912,4 +912,3 @@ int aaip_set_lfa_flags(char *path, uint64_t lfa_flags, int max_bit,
return(ret);
}