Changeset 407 for trunk/kernel/syscalls/sys_unlink.c
- Timestamp:
- Nov 7, 2017, 3:08:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_unlink.c
r305 r407 37 37 process_t * process = this->process; 38 38 39 // get pathname copy in kernel space 40 error = hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH ); 41 42 if( error ) 39 // check pathname length 40 if( hal_strlen_from_uspace( pathname ) >= CONFIG_VFS_MAX_PATH_LENGTH ) 43 41 { 44 42 printk("\n[ERROR] in %s : pathname too long\n", __FUNCTION__ ); … … 46 44 return -1; 47 45 } 46 47 // copy pathname in kernel space 48 hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH ); 48 49 49 50 // get cluster and local pointer on reference process
Note: See TracChangeset
for help on using the changeset viewer.