241 |
flags = 0; |
flags = 0; |
242 |
mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; |
mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; |
243 |
|
|
244 |
|
if (*filename && filename[strlen(filename) - 1] == '/') |
|
if (filename[strlen(filename) - 1] == '/') |
|
245 |
filename[strlen(filename) - 1] = 0; |
filename[strlen(filename) - 1] = 0; |
246 |
sprintf(path, "%s%s", g_rdpdr_device[device_id].local_path, filename); |
sprintf(path, "%s%s", g_rdpdr_device[device_id].local_path, filename); |
247 |
|
|
550 |
NTSTATUS |
NTSTATUS |
551 |
disk_set_information(NTHANDLE handle, uint32 info_class, STREAM in, STREAM out) |
disk_set_information(NTHANDLE handle, uint32 info_class, STREAM in, STREAM out) |
552 |
{ |
{ |
553 |
uint32 device_id, length, file_attributes, ft_high, ft_low; |
uint32 length, file_attributes, ft_high, ft_low; |
554 |
char newname[256], fullpath[256]; |
char newname[256], fullpath[256]; |
555 |
struct fileinfo *pfinfo; |
struct fileinfo *pfinfo; |
556 |
|
|
976 |
static NTSTATUS |
static NTSTATUS |
977 |
disk_device_control(NTHANDLE handle, uint32 request, STREAM in, STREAM out) |
disk_device_control(NTHANDLE handle, uint32 request, STREAM in, STREAM out) |
978 |
{ |
{ |
|
uint32 result; |
|
|
|
|
979 |
if (((request >> 16) != 20) || ((request >> 16) != 9)) |
if (((request >> 16) != 20) || ((request >> 16) != 9)) |
980 |
return STATUS_INVALID_PARAMETER; |
return STATUS_INVALID_PARAMETER; |
981 |
|
|