Displaying 6 results from an estimated 6 matches for "04o".
Did you mean:
04
2002 Mar 15
4
PATCH: sftp-server logging.
...ER_ATTR_PERMISSIONS) ? a->perm : 0666;
TRACE("open id %d name %s flags %d mode 0%o", id, name, pflags, mode);
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 hand...
2001 Jun 20
1
SFTP Logging Redux.
...flags = flags_from_portable(pflags);
+ sflags_from_portable(&sflags[0], pflags);
mode = (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) ? a->perm : 0666;
TRACE("open id %d name %s flags %d mode 0%o", id, name, pflags, mode);
+ log("(%d/%d/%s) File/Dir opened: %s (%s,%04o)", ppid, cuid, CUNAME, name, sflags, mode);
fd = open(name, flags, mode);
if (fd < 0) {
status = errno_to_portable(errno);
@@ -589,6 +620,7 @@
name = get_string(NULL);
a = get_attrib();
TRACE("setstat id %d name %s", id, name);
+ log("(%d/%d/%s) Permissions alter...
2002 Jul 13
0
[PATCH]: scp program improved
...@@ -536,14 +581,19 @@
if (response() < 0)
goto next;
}
+ if (resume_mode)
+ c = 'R';
+ else
+ c = 'C';
+
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
#ifdef HAVE_LONG_LONG_INT
- snprintf(buf, sizeof buf, "C%04o %lld %s\n",
+ snprintf(buf, sizeof buf, "%c%04o %lld %s\n", c,
(u_int) (stb.st_mode & FILEMODEMASK),
(long long)stb.st_size, last);
#else
/* XXX: Handle integer overflow? */
- snprintf(buf, sizeof buf, "C%04o %lu %s\n",
+ snprintf(buf, sizeof buf, &...
2000 Aug 18
0
[PATCH] Support symlinks in scp of openssh 2
...case S_IFREG:
+ if (fd < 0 && (fd = open(name, O_RDONLY, 0)) < 0)
+ goto syserr;
break;
case S_IFDIR:
@@ -586,6 +606,7 @@ syserr: run_err("%s: %s", name, strerr
}
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
- (void) sprintf(buf, "C%04o %lu %s\n",
- (unsigned int) (stb.st_mode & FILEMODEMASK),
+ (void) sprintf(buf, "%c%04o %lu %s\n",
+ ((stb.st_mode & S_IFMT) == S_IFLNK) ? 'L' : 'C',
+ (unsigned int) (stb.st_mode & FILEMODEMASK),
(unsigned long) stb.st...
2006 Mar 17
3
[Bug 1173] scp reports lost connection for very large files
...nsferred is around 10G (10435459928), however
with 'scp -v' it is reported (see line below) as merely 1.8G or so
(1845525336).
Sending file modes: C0644 1845525336 onedrain_opsncc_pg_dump.out
Further investigation points to scp.c line 607
snprintf(buf, sizeof buf, "C%04o %lld %s\n",
(u_int) (stb.st_mode & FILEMODEMASK),
(long long)stb.st_size, last);
if (verbose_mode) {
fprintf(stderr, "Sending file modes: %s", buf);
}
Value in stb.st_size is correct...
2015 May 22
5
[Bug 2404] New: scp skips file/directory on permissions error
https://bugzilla.mindrot.org/show_bug.cgi?id=2404
Bug ID: 2404
Summary: scp skips file/directory on permissions error
Product: Portable OpenSSH
Version: 6.7p1
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5
Component: scp
Assignee: unassigned-bugs at mindrot.org