rem: if (userPath != NULL) {
add: if (fd == -1) {
context: user_setcwd(int fd, const char *userPath){	char path[SYS_MAX_PATH_LEN];	int rc;	PRINT(("user_setcwd: path = %p\n", userPath));	if (userPath != NULL) {		if (!CHECK_USER_ADDRESS(userPath))			return B_BAD_ADDRESS;		// Copy new path to kernel space		rc = user_strncpy(path, userPath, SYS_MAX_PATH_LEN - 1);		if (rc < 0)			return rc;		path[SYS_MAX_PATH_LEN - 1] = '\0';	} else		path[0] = '\0';	// Call vfs to set new working directory	return set_cwd(fd, path, false);}