search for: local_path

Displaying 20 results from an estimated 58 matches for "local_path".

2003 Oct 01
1
3.7.1p2 sftp recurse patch
...ove remote directory\n"); printf("rm path Delete remote file\n"); printf("symlink oldpath newpath Symlink remote file\n"); @@ -430,6 +436,106 @@ } static int +do_recursive_download(struct sftp_conn *conn, char *remote_path, + char *local_path, int pflag) +{ + char *remote_tmp, *local_tmp; + int err, n; + SFTP_DIRENT **d; + extern int errno; + + if (recursion && remote_is_dir(conn, remote_path)) { + if (!is_dir(local_path)) { + /* Create local directory */ + err = mkdir(local_path, 0777); + if (err == -1) { + error(&quo...
2002 Nov 05
2
[PATCH] fix sftp to preserve permissions and uid/gid
...(a->perm & S_IFDIR)) { error("Cannot download a directory: %s", remote_path); *************** *** 931,939 **** /* Override umask and utimes if asked */ #ifdef HAVE_FCHMOD ! if (pflag && fchmod(local_fd, mode) == -1) #else ! if (pflag && chmod(local_path, mode) == -1) #endif /* HAVE_FCHMOD */ error("Couldn't set mode on \"%s\": %s", local_path, strerror(errno)); --- 984,992 ---- /* Override umask and utimes if asked */ #ifdef HAVE_FCHMOD ! if (pflag && fchmod(local_fd, savemode) == -1)...
2003 Oct 30
2
sftp client reget reput
...ftp-client.c openssh-3.7.1p2_sftp/sftp-client.c --- openssh-3.7.1p2/sftp-client.c 2003-07-02 22:46:57.000000000 -0500 +++ openssh-3.7.1p2_sftp/sftp-client.c 2003-10-16 10:09:51.000000000 -0500 @@ -735,8 +735,13 @@ } int +#ifdef REGET +do_download(struct sftp_conn *conn, char *remote_path, char *local_path, + int pflag, int rflag) +#else do_download(struct sftp_conn *conn, char *remote_path, char *local_path, int pflag) +#endif { Attrib junk, *a; Buffer msg; @@ -798,8 +803,17 @@ return(-1); } - local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC, - mode | S_IWRITE); +#i...
2002 Jan 03
3
[PATCH] Improving sftp client performance
...fatal("Received more data than asked for %d > %d", - len, COPY_SIZE); - - debug3("In read loop, got %d offset %llu", len, - (u_int64_t)offset); - if (atomicio(write, local_fd, data, len) != len) { - error("Couldn't write to \"%s\": %s", local_path, - strerror(errno)); - do_close(fd_in, fd_out, handle, handle_len); - status = -1; - xfree(data); - goto done; + SSH2_FXP_DATA, type); } - - offset += len; - xfree(data); } - status = do_close(fd_in, fd_out, handle, handle_len); - /* Override umask and utimes if asked...
2002 Jan 06
3
sftp/scp performance testing
Folks, I've noticed poor performance using sftp. If anyone has any advice on how to improve performance, I'd like to hear it. Test simply involved transferring a single 143MB MP3 file using defaults for all the program configs. The opensshd 3.0.2p1 server is used in all tests. Software: openssh suite 3.0.2p1 psftp (putty sftp client) latest dev snapshot pscp (putty scp client) latest
2001 Sep 10
0
[PATCH] quick hack for 'resume' support in sftp
...5,691 ---- Buffer msg; Attrib junk, *a; int status; + struct stat localfile; a = do_stat(fd_in, fd_out, remote_path, 0); if (a == NULL) *************** *** 698,705 **** error("Cannot download a directory: %s", remote_path); return(-1); } ! ! local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC, mode); if (local_fd == -1) { error("Couldn't open local file \"%s\" for writing: %s", local_path, strerror(errno)); --- 702,720 ---- error("Cannot download a directory: %s", remote_path); return(-1); } ! !...
2013 Jan 12
1
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021 --- Comment #10 from Loganaden Velvindron <loganaden at gmail.com> --- ping :-) ? -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
2014 May 05
1
Application crushes
...o.c:171 #2 0x673fb160 in th_decode_headerin (_info=0x6dca52b0, _tc=0x6728ebd8, _setup=0x6728eedc, _op=0x6728ebb8) at jni/theorarm/src/dec/decinfo.c:240 #3 0x673fa43c in theora_decode_header (_ci=0x6728ebe8, _cc=0x6728ebd8, _op=0x6728ebb8) at jni/theorarm/src/dec/decapiwrapper.c:150 Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := theorARM LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \ $(LOCAL_PATH)/src \ $(LOCAL_PATH)/src/dec LOCAL_SRC_FILES := src/dec/apiwrapper.c \ src/dec/internal.c \ src/dec/info.c \ src/dec/decapiwrapper.c \ src/dec/d...
2019 May 07
0
dlopen failed: cannot locate symbol "opus_projection_encoder_ctl" referenced by "libopusenc.so"
...rary (.a file instead of .so), however, I am getting undefined reference error on "opus_projection_encoder_ctl". Appreciate any inputs on this issue. If this is not the right forum, please direct me to the right forum to discuss this issue. Thanks, Alice Android.mk: ============= LOCAL_PATH:= $(call my-dir) #=========================== # Pre-build libopus Library. #=========================== include $(CLEAR_VARS) LOCAL_MODULE := libopus LOCAL_SRC_FILES := path/to/prebuilt/$(TARGET_ARCH_ABI)/libopus.so include $(PREBUILT_SHARED_LIBRARY) #============================== # Pre-build...
2006 Aug 15
8
AGAIN: file object treated as string
I am trying to implement the uploading of a file to a remote server I get error while trying to write the file on the server. The error I get is the following: undefined method `rewind'' for #<String:0x2aaaad062eb8> It seems to be treating my file as a string instead of a File object. --------- Code is below ------------------ VIEW: <%=
2006 May 31
4
acts_as_attachment , someone using it?
Hi, i just found the acts_as_attachment plugin for image upload, seems sogood but i cant find any docs about it, if someone here using it can give some references or working examples about the plugin that will be excellent. So what you wanna rails today? -- Posted via http://www.ruby-forum.com/.
2018 May 18
2
[PATCH] RFC: v2v: use RHV Setup Tools ISO if available
...+++++++++++++ 2 files changed, 67 insertions(+), 8 deletions(-) diff --git a/v2v/convert_windows.ml b/v2v/convert_windows.ml index 163319545..21dafe4f4 100644 --- a/v2v/convert_windows.ml +++ b/v2v/convert_windows.ml @@ -27,6 +27,10 @@ open Types module G = Guestfs +type tool_location = + | Local_path of string (* path of file *) + | ISO of string * string (* path of ISO, path to look for inside the ISO *) + (* Convert Windows guests. * * This only does a "pre-conversion", the steps needed to get the @@ -239,12 +243,15 @@ let convert (g : G.guestfs) inspect source output rcaps =...
2004 Mar 03
1
BUG: SFTP (openssh-3.8p1) upload doubles "Uploading..." comment
...:39:51 -0000 1.46 +++ sftp-client.c 3 Mar 2004 03:05:36 -0000 @@ -805,13 +805,8 @@ max_req = 1; progress_counter = 0; - if (showprogress) { - if (size) - start_progress_meter(remote_path, size, - &progress_counter); - else - printf("Fetching %s to %s\n", remote_path, local_path); - } + if (showprogress && size != 0) + start_progress_meter(remote_path, size, &progress_counter); while (num_req > 0 || max_req > 0) { char *data; @@ -1032,8 +1027,6 @@ offset = 0; if (showprogress) start_progress_meter(local_path, sb.st_size, &offset); - els...
2005 Sep 07
0
model constructor errors.
...icture=(filename) method is called in this constructor.. this is not the case. Does anyone know why? params[:photo].each_pair do |id, parameters| photo = Photo.new(parameters) end class Photo < ActiveRecord::Base attr_accessor :file, :content_type, :size, :extension, :local_path, :destroyed attr_reader :original_filename attr_accessible :title, :description has_many :comments, :exclusively_dependent => true belongs_to :user validates_presence_of :title validates_presence_of :description, :on => :update acts_as_taggable def picture=(picture_fiel...
2007 Apr 27
3
Image upload problem.
I''ve seen posts of a few people who have this problem, but not a single response about solving it. I can''t upload .png files, but .jpg and .gif work fine. When I upload just a .png, my action gets a StringIO object which breaks when I try to copy the upload to an absolute location. However, using multiple-field upload, as long as one of the to-upload files is *not* a .png, all
2013 Jun 19
9
[Bug 2021] sftp resume support (using size and offset)
https://bugzilla.mindrot.org/show_bug.cgi?id=2021 Loganaden Velvindron <loganaden at gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #2199|0 |1 is obsolete| | --- Comment #12 from Loganaden Velvindron
2002 Feb 06
2
SFTP Status Bar..
...002 @@ -49,6 +49,11 @@ /* Message ID */ static u_int msg_id = 1; +/* Progress Meter items */ +off_t statbytes = 0; +off_t totalbytes = 0; +char *curfile = NULL; + static void send_msg(int fd, Buffer *m) { @@ -671,7 +676,7 @@ int do_download(int fd_in, int fd_out, char *remote_path, char *local_path, - int pflag) + int pflag, void (*progressbar)(int)) { int local_fd; u_int expected_id, handle_len, mode, type, id; @@ -724,6 +729,11 @@ return(-1); } + totalbytes = a->size; + curfile = remote_path; + if (progressbar) + (progressbar)(0); + /* Read from remote and write to...
2020 Nov 01
0
4.13.1 make test failed
...estsuite[samba.unittests.util_paths] REASON: Exit code was 1 == samba3.smbtorture_s3.plain.OWNER-RIGHTS(fileserver_smb1) == command: /usr/src/samba-4.13.1/source3/script/tests/test_smbtorture_s3.sh OWNER-RIGHTS //$SERVER_IP/tmp $USERNAME $PASSWORD /usr/src/samba-4.13.1/bin/smbtorture3 -l $LOCAL_PATH 2>&1 | python3 /usr/src/samba-4.13.1/selftest/filter-subunit --fail-on-empty --prefix="samba3.smbtorture_s3.plain.OWNER-RIGHTS." --suffix="(fileserver_smb1)" expanded command: /usr/src/samba-4.13.1/source3/script/tests/test_smbtorture_s3.sh OWNER-RIGHTS //10.53.57.53/tm...
2006 May 09
2
handling file upload onto local filesystem.
...ter_save end My question is, is the after_save method the right place to put the File manipulation stuff to copy and save the file on a directory on my local webserver filesystem? Also, how do I get access to the actual file in the after_save so that I could do stuff like the following: file.local_path (basically work with the file object so that I could copy it over from its local path onto my filesystem) and one more question, how do I pass stuff into this function that comes from the controller but is not necessarily an attribute of the Profile model? Thanks in advance. -------------- next p...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...:41 @@ -49,6 +49,11 @@ /* Message ID */ static u_int msg_id = 1; +/* Progress Meter items */ +off_t statbytes = 0; +off_t totalbytes = 0; +char *curfile = NULL; + static void send_msg(int fd, Buffer *m) { @@ -670,7 +675,7 @@ int do_download(int fd_in, int fd_out, char *remote_path, char *local_path, - int pflag) + int pflag, void (*progressbar)(int)) { int local_fd; u_int expected_id, handle_len, mode, type, id; @@ -723,6 +728,11 @@ return(-1); } + totalbytes = a->size; + curfile = remote_path; + if (progressbar) + (progressbar)(0); + /* Read from remote and write to...