version 1.60, 2006/07/10 11:24:54 |
version 1.61, 2006/07/10 11:25:53 |
|
|
int handle, fd, flags, mode, status = SSH2_FX_FAILURE; |
int handle, fd, flags, mode, status = SSH2_FX_FAILURE; |
|
|
id = get_int(); |
id = get_int(); |
debug3("request %u: open flags %d", id, pflags); |
|
name = get_string(NULL); |
name = get_string(NULL); |
pflags = get_int(); /* portable flags */ |
pflags = get_int(); /* portable flags */ |
|
debug3("request %u: open flags %d", id, pflags); |
a = get_attrib(); |
a = get_attrib(); |
flags = flags_from_portable(pflags); |
flags = flags_from_portable(pflags); |
mode = (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) ? a->perm : 0666; |
mode = (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) ? a->perm : 0666; |