search for: process_open

Displaying 4 results from an estimated 4 matches for "process_open".

2004 Oct 25
1
Bug in sftp's chmod
Hi, I've discovered that on OpenSSH_3.6.1p1 (the latest SSH available on OSX, but I've also tried a couple of different linux distributions), when you 'sftp' to it, and try to 'chmod' some file or directory, only last three octal digits do actually matter. Example: sftp sshtest at localhost Connecting to localhost... sshtest at localhost's password: sftp> ls -l
2006 Feb 08
0
Commit process, etc
Hi folks: I'm making some local additions to sftp-server.c to add an event handler for the different SFTP transactions (e.g. process_open). This is in support of our web publishing system which uses LDAP to enforce file and directory permissions (we've done this to decouple permissioning from the underlying file system). Anyway, this is my first open-source project of this nature; and I'd like to know if there are URL's/...
2013 Oct 14
0
[PATCH-resend] Implement SSH2_FXF_APPEND
...tes_write = 0; @@ -282,6 +288,14 @@ handle_to_fd(int handle) return -1; } +static int +handle_to_flags(int handle) +{ + if (handle_is_ok(handle, HANDLE_FILE)) + return handles[handle].flags; + return -1; +} + static void handle_update_read(int handle, ssize_t bytes) { @@ -567,7 +581,7 @@ process_open(void) if (fd < 0) { status = errno_to_portable(errno); } else { - handle = handle_new(HANDLE_FILE, name, fd, NULL); + handle = handle_new(HANDLE_FILE, name, fd, flags, NULL); if (handle < 0) { close(fd); } else { @@ -660,7 +674,8 @@ process_write(void) else if (re...
2013 Jun 04
1
[PATCH] add restricted mode to sftp-server
Hello. These patches add a new mode of operation for the sftp server. It is located between the ordinary, unrestricted mode and read-only mode. It allows you to add files to the server, but only if these files do not exist on the server before. Changes to existing files - are prohibited. Please review them, maybe these patches will be useful not only to me. Thank you. -------------- next part