Displaying 8 results from an estimated 8 matches for "ssh2_filexfer_attr_uidgid".
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
...c = 0;
+ a->ctimensec = 0;
}
/* Convert from struct stat to filexfer attribs */
@@ -61,6 +72,7 @@ stat_to_attrib(const struct stat *st, At
{
attrib_clear(a);
a->flags = 0;
+ a->ext_flags = 0;
a->flags |= SSH2_FILEXFER_ATTR_SIZE;
a->size = st->st_size;
a->flags |= SSH2_FILEXFER_ATTR_UIDGID;
@@ -69,8 +81,32 @@ stat_to_attrib(const struct stat *st, At
a->flags |= SSH2_FILEXFER_ATTR_PERMISSIONS;
a->perm = st->st_mode;
a->flags |= SSH2_FILEXFER_ATTR_ACMODTIME;
+ a->ext_flags |= SSH2_FXE_EXTATTR_ATIME;
+ a->ext_flags |= SSH2_FXE_EXTATTR_MTIME;
a->atime = st-&g...
2001 Feb 21
1
sftp-server and chown
...or
+ * Windows (at least 2.2.0) tends to send bogus ownership (most
+ * notably root:root) while some systems permit non-priviledged
+ * user to make chown.
+ * <appro at fy.chalmers.se>
+ */
if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
ret = chown(name, a->uid, a->gid);
if (ret == -1)
status = errno_to_portable(errno);
}
+ #endif
send_status(id, status);
xfree(name);
}
***************
*** 591,600 ****
status = SSH2_FX_FAILUR...
2008 Nov 24
5
[Bug 1541] New: sftp: the do_stat() failure is ignored for chown, chgrp ops. in parse_dispatch_command()
...else
+ }
+ else {
+ err = 0;
continue;
+ }
}
if (!(aa->flags & SSH2_FILEXFER_ATTR_UIDGID)) {
error("Can't get current ownership of "
"remote file \"%s\"",
g.gl_pathv[i]);
- if (err != 0 && err_abort)
+ if (err_abort) {...
2002 Mar 15
4
PATCH: sftp-server logging.
...{
ret = chmod(name, a->perm & 0777);
! if (ret == -1)
status = errno_to_portable(errno);
}
if (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME) {
ret = utimes(name, attrib_to_tv(a));
! if (ret == -1)
status = errno_to_portable(errno);
}
if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
ret = chown(name, a->uid, a->gid);
! if (ret == -1)
status = errno_to_portable(errno);
}
send_status(id, status);
xfree(name);
--- 662,708 ----
TRACE("setstat id %d name %s", id, name);
if (a->flags & SSH2_FILEXFER_ATTR_SIZE) {
ret = truncate(...
2002 Nov 05
0
[PATCH] Add getlink command to sftp
...har *, Attrib *);
/* XXX: add callbacks to do_download/do_upload so we can do progress meter
*/
*** sftp-server.c@@\main\1 Tue Oct 1 17:27:26 2002
--- sftp-server.c Tue Nov 5 10:07:54 2002
***************
*** 604,610 ****
status = errno_to_portable(errno);
}
if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
! ret = chown(name, a->uid, a->gid);
if (ret == -1)
status = errno_to_portable(errno);
}
--- 618,624 ----
status = errno_to_portable(errno);
}
if (a->flags & SSH2_FILEXFER_ATTR_UIDGID) {
! ret = lchown(name, a->uid, a->gid);
if (ret == -1)
s...
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
2001 Feb 12
5
SCO OS3 build broken (CVS 01/12/01)
It looks like something got broken in openbsd-compat/bsd-snprintf.c
...
gcc -g -O2 -Wall -Dftruncate=chsize -I/usr/local/include -I/usr/local/ssl/includ
e -I. -I.. -I../src/openbsd-compat -I../src/openbsd-compat/.. -DHAVE_CONFIG_H -c
../src/openbsd-compat/bsd-snprintf.c
In file included from ../src/openbsd-compat/bsd-snprintf.c:72:
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