MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / interface_check_disk_access

Function interface_check_disk_access

src/diskacc.c:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96#endif
97
98int interface_check_disk_access(disk_t *disk_car, char **current_cmd)
99{
100 if((disk_car->access_mode&TESTDISK_O_RDWR)==TESTDISK_O_RDWR)
101 return 0;
102 if(*current_cmd!=NULL)
103 return 0;
104 log_warning("Media is opened in read-only.\n");
105 log_flush();
106#ifdef HAVE_NCURSES
107 return interface_check_disk_access_ncurses(disk_car);
108#else
109 return 0;
110#endif
111}

Callers 2

Calls 2

log_flushFunction · 0.85

Tested by

no test coverage detected