Changeset 637 for trunk/kernel/syscalls/sys_chmod.c
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_chmod.c
r566 r637 2 2 * sys_chmod.c - Change file access rights. 3 3 * 4 * Author Alain Greiner (2016,2017 )4 * Author Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) 2015 UPMC Sorbonne Universites … … 47 47 48 48 #if DEBUG_SYSCALLS_ERROR 49 50 49 printk("\n[ERROR] in %s : pathname too long / thread %x in process %x\n", 50 __FUNCTION__, this->trdid, process->pid ); 51 51 #endif 52 52 this->errno = ENFILE; … … 55 55 56 56 // copy pathname in kernel space 57 hal_strcpy_from_uspace( kbuf , pathname , CONFIG_VFS_MAX_PATH_LENGTH ); 57 hal_strcpy_from_uspace( XPTR( local_cxy , kbuf ), 58 pathname, 59 CONFIG_VFS_MAX_PATH_LENGTH ); 58 60 59 61 printk("\n[ERROR] in %s : not implemented yet\n", __FUNCTION__ );
Note: See TracChangeset
for help on using the changeset viewer.