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