search for: handle_fil

Displaying 6 results from an estimated 6 matches for "handle_fil".

Did you mean: handle_file
2013 Oct 14
0
[PATCH-resend] Implement SSH2_FXF_APPEND
...handles[i].dirp = dirp; handles[i].fd = fd; + handles[i].flags = flags; handles[i].name = xstrdup(name); handles[i].bytes_read = handles[i].bytes_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 = handl...
2010 Mar 18
13
ERROR NoMethodError: private method `gsub!' called
I have just upgraded to Ruby 1.8.7 and Rails 2.2.2. My previous project was at Ruby 1.8.6 and Rails 2.0.2. My platform is Windows and Webrick for development. When I run Webrick, the server starts without error, the application runs, database connections work and I can click through the pages and display data. But it does not serve any stylesheets or javascript files. What''s
2006 Nov 04
0
page caching urls with space characters broken in webrick and mongrel
...investigating why using caches_page() to cache urls that have a space in them encoded as either ''+'' or ''%20'' doesn''t work (the cache files are generated but never used, and continually regenerated on page reload) led me to this line in webrick_server.rb handle_file(): path.gsub!(''+'', '' '') # Unescape + since FileHandler doesn''t do so. Commenting this line out restores page caching to proper functionality, as the filename is written to disk with ''+'' (and ''%20'' is also norm...
1997 Jan 22
1
program xxx is not vulnerable.
...it gains you. Roger Wolff. (*) Currently xxx == write or login, yyy == buffer-overrun (%) I -=am=- responsible for a security critical machine. Problem evaluated. Action taken: None. I -=do=- have to take that decision myself. (+) For example when you find for (i=1;i<argc-1;i++); handle_file (argv[i]); I really hope everybody maintaining a source would fix it even though nobody has reported a bug about "more than one argument" not working. (remove the "-1" and the ";" on the first line) P.S. I had a peek at the login-buffer overrun problem. Wether or n...
2003 May 31
11
[Bug 581] SFTP "ls" listings never end
http://bugzilla.mindrot.org/show_bug.cgi?id=581 Summary: SFTP "ls" listings never end Product: Portable OpenSSH Version: -current Platform: Alpha OS/Version: OSF/1 Status: NEW Severity: major Priority: P2 Component: sftp-server AssignedTo: openssh-bugs at mindrot.org ReportedBy:
2002 Mar 15
4
PATCH: sftp-server logging.
...; fd = open(name, flags, mode); if (fd < 0) { status = errno_to_portable(errno); + #ifdef SFTP_LOGGING + log("(%d/%d/%s) File/Dir open failed - %s: %s (%s,%04o)", ppid, cuid, CUNAME, status_to_logstr(status), name, sflags, mode); + #endif } else { handle = handle_new(HANDLE_FILE, xstrdup(name), fd, NULL); if (handle < 0) { close(fd); + #ifdef SFTP_LOGGING + log("(%d/%d/%s) File/Dir open failed - Could not allocate SFTP handle: %s (%s,%04o).", ppid, cuid, CUNAME, name, sflags, mode); + #endif } else { send_handle(id, handle); status =...