Displaying 20 results from an estimated 31 matches for "do_download".
2002 Feb 06
2
SFTP Status Bar..
...0:45:45 2001
+++ openssh/sftp-client.c Wed Feb 6 13:02:34 2002
@@ -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)...
2008 Jul 07
3
yum-updatesd not working on CentOS 5.2
...5.2, is there
any patch for this? anyone using this daemon for Yum?
This is the configuration file:
# grep -v "#" /etc/yum/yum-updatesd.conf
[main]
run_interval = 60
updaterefresh = 60
emit_via = email
email_to = santi at example.com
email_from = centos at example.com
do_update = yes
do_download = yes
do_download_deps = yes
Regards,
[1] http://bugs.centos.org/view.php?id=2039
[2] http://bugs.centos.org/view.php?id=2592
[3] http://bugs.centos.org/view.php?id=2560
--
Santi Saez
2002 Feb 02
0
Version two of progressbar for scp/sftp
...2001/12/19 07:18:56 1.19
+++ sftp-client.c 2002/02/02 21:47: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)...
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.
2003 Oct 30
2
sftp client reget reput
...-06-05
Regards,
Greg Hayes
diff -u -r openssh-3.7.1p2/sftp-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...
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 Dec 05
2
[Bug 452] sftp does not abort when commands given via -b fail
http://bugzilla.mindrot.org/show_bug.cgi?id=452
------- Additional Comments From spin at avalon.net 2002-12-06 03:15 -------
Forgot to mention that this is 3.1p1-6 RedHat RPM.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2006 Dec 01
1
Simple file download doesn't work - please help!
...some problems I previously posted
about. So I am trying
to not use send_file. (If anyone can help me with my previous send_file
post, that would
be great, but please don''t suggest send_file otherwise, thanks).
So, I have:
<input type=button value="I AGREE" onclick="do_download();">
in one of my rhtml files, where do_download is a javascript fcn:
function do_download()
{
location.href = ''/products/download_sample.zip''
}
The browser is supposed to see that this is a zip file and put up a pop
up window that
queries whether to save or open. Standa...
2007 Aug 01
3
yum-updatesd.conf on centos 5
...ntos
Now, everything works. But, in this vershion of yum, It has no crontab
running. It has a file called /etc/yum/yum-updatesd.conf instaed.
in this yum-updatesd.conf file,
by default, below 3 lines were set to no
# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no
I changed it to yes.
Pls see below for my yum-updatesd.conf file.
[root at mailgw ~]# cat /etc/yum/yum-updatesd.conf
[main]
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on r...
2002 Nov 05
0
[PATCH] Add getlink command to sftp
...2002
***************
*** 90,97 ****
/* Rename 'oldpath' to 'newpath' */
int do_symlink(struct sftp_conn *, char *, char *);
/* Return target of symlink 'path' - caller must free result */
! char *do_readlink(struct sftp_conn *, char *);
/* XXX: add callbacks to do_download/do_upload so we can do progress meter
*/
--- 90,100 ----
/* Rename 'oldpath' to 'newpath' */
int do_symlink(struct sftp_conn *, char *, char *);
+ /* Download symlink 'path' */
+ int do_getlink(struct sftp_conn *, char *);
+
/* Return target of symlink 'path...
2002 Jan 30
1
Quick sftp status indicator.
...{
@@ -668,13 +674,23 @@
return(filename);
}
+void
+updateprogressmeter(int ignore)
+{
+ int save_errno = errno;
+
+ progressmeter(0, offset, file_size, filename);
+ signal(SIGALRM, updateprogressmeter);
+ alarm(PROGRESSTIME);
+ errno = save_errno;
+}
+
int
do_download(int fd_in, int fd_out, char *remote_path, char *local_path,
int pflag)
{
int local_fd;
u_int expected_id, handle_len, mode, type, id;
- u_int64_t offset;
char *handle;
Buffer msg;
Attrib junk, *a;
@@ -723,6 +739,12 @@
return(-1);
}
+ file_size = a->size;
+ filename = remot...
2003 Oct 01
1
3.7.1p2 sftp recurse patch
...h_append(remote_path, d[n]->filename);
+ local_tmp = path_append(local_path, d[n]->filename);
+ err = do_recursive_download(conn, remote_tmp,
+ local_tmp, pflag);
+ xfree(remote_tmp);
+ xfree(local_tmp);
+ if (err == -1)
+ break;
+ }
+ free_sftp_dirents(d);
+ } else
+ err = do_download(conn, remote_path, local_path, pflag);
+END:
+ return err;
+}
+
+static int
+do_recursive_upload(struct sftp_conn *conn, char *local_path,
+ char *remote_path, int pflag)
+{
+ int err;
+ DIR *d;
+ struct dirent *f;
+ char *local_tmp, *remote_tmp;
+ Attrib a;
+ extern int errno;
+
+ if (recursi...
2002 Apr 01
0
[Bug 196] New: wront sent message id on upload
...ftp_client.c, do_upload() function, the 'id' variable is used for both the
sent and the received message ids, this corrupts the id of the messages
to send and randomly generates upload failures.
The fix is to use another variable to extract the received message id,
status_id, as done in do_download()
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2013 Nov 30
4
[Bug 2176] New: unchecked returned value from ftruncate
...ity: minor
Priority: P5
Component: sftp
Assignee: unassigned-bugs at mindrot.org
Reporter: loganaden at gmail.com
Created attachment 2378
--> https://bugzilla.mindrot.org/attachment.cgi?id=2378&action=edit
sftp_unchecked_return
@@ -1253,7 +1253,9 @@ do_download(struct sftp_conn *conn, char
"server reordered requests", local_path);
}
debug("truncating at %llu", (unsigned long long)highwater);
- ftruncate(local_fd, highwater);
ftruncate value isn't checked.
--
You are receiving this mail b...
2008 Feb 25
0
Yum-updatesd not functioning
...tions (valid: dbus, email, syslog)
emit_via = email
email_from = root at FQDN (the real server FQDN is in the file)
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes
# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no
None of the servers notified me of the batch of updates that came out
this weekend. Running 'service yum-updatesd status' on each of them
showed it as running, yet a 'yum update' showed the available updates. I
tri...
2008 Dec 11
6
yum-updatesd or similar for CentOS 4
Hello,
we have enabled yum-updatesd on our dozen real
and virtual machines running CentOS 5.2 some time
ago and are very satisfied:
afarber at ablsw01:~> grep -v ^# /etc/yum/yum-updatesd.conf
[main]
run_interval = 7200
updaterefresh = 1200
emit_via = email
dbus_listener = no
do_update = yes
do_download = yes
do_download_deps = yes
(it would be good to make it use the proxy though...)
My plan is to keep the update mails and if
anything goes wrong, install the older packages.
But until now I never needed to do that :-)
However we have few machines running CentOS 4.7
which we can't upgrade to...
2006 May 09
1
Seg fault when installing package from bad repository
...0x3 out of bounds>)
at ../../../../R-2.3.0/src/main/errors.c:223
#5 0x023c39a8 in in_R_HTTPOpen (url=0x212c930
"/Library/Frameworks/R.framework/Resources/share/locale/en/LC_MESSAGES/R.mo",
cacheOK=404) at
../../../../../R-2.3.0/src/modules/internet/internet.c:490
#6 0x023c3f00 in in_do_download (call=0x5f4d4553, op=0xbfff2a03,
args=0x195d300, env=0x34) at
../../../../../R-2.3.0/src/modules/internet/internet.c:320
#7 0x010b6290 in do_download (call=0x18d0078, op=0x181c2a8,
args=0x18c3b50, env=0x18cfd64) at
../../../../R-2.3.0/src/main/internet.c:99
#8 0x010cefc4 in do_internal (call=0x18...
2008 Jul 21
2
sftp needs a long time for sending a filelist
Hello all
Im using sftp 1:4.7p1-8ubuntu1.2
in a batchjob
Ive noticed that sftp needs a long time for sending a filelist.
The timespan increases exponential if many files are on the
remoteserver.
for example "ls -la *.txt" needs 10 seconds for 2000 files
but needs 50 seconds for 4000 files.
For 150.000 Files i have to wait 15 minutes for example
but the
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...er, len+32, "/dev/mapper/%s", mapname);
> + CLEANUP_FREE char *devmapper;
Missing "= NULL" here.
> diff --git a/daemon/upload.c b/daemon/upload.c
> index efbb427..bb6da39 100644
> --- a/daemon/upload.c
> +++ b/daemon/upload.c
> @@ -152,7 +152,13 @@ int
> do_download (const char *filename)
> {
> int fd, r, is_dev;
> - char buf[GUESTFS_MAX_CHUNK_SIZE];
> + CLEANUP_FREE char *buf;
Missing "= NULL" here.
> diff --git a/erlang/erl-guestfs-proto.c b/erlang/erl-guestfs-proto.c
> index 658a0ef..0c2f545 100644
> --- a/erlang/erl-g...
2017 Aug 03
0
[PATCH 3/6] daemon: Refine check for Device and Dev_or_Path parameters (RHBZ#1477623).
...on/upload.c
@@ -94,7 +94,7 @@ upload (const char *filename, int flags, int64_t offset)
{
int err, is_dev, fd;
- is_dev = STRPREFIX (filename, "/dev/");
+ is_dev = is_device_parameter (filename);
if (!is_dev) CHROOT_IN;
fd = open (filename, flags, 0666);
@@ -170,7 +170,7 @@ do_download (const char *filename)
return -1;
}
- is_dev = STRPREFIX (filename, "/dev/");
+ is_dev = is_device_parameter (filename);
if (!is_dev) CHROOT_IN;
fd = open (filename, O_RDONLY|O_CLOEXEC);
@@ -264,7 +264,7 @@ do_download_offset (const char *filename, int64_t offset, int6...