Displaying 17 results from an estimated 17 matches for "vwrite".
Did you mean:
write
2009 Oct 25
0
alternate output for progressmeter
...if (bytes_left > 0)
? ? ? ? ? ? ? ? ? ? ? ?strlcat(buf, " ETA", win_size);
? ? ? ? ? ? ? ?else
- ? ? ? ? ? ? ? ? ? ? ? strlcat(buf, " ? ?", win_size);
+ ? ? ? ? ? ? ? ? ? ? ? strlcat(buf, (progresstype)?" done":" ? ?", win_size);
? ? ? ?}
- ? ? ? atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
+ ? ? ? if (progresstype) {
+ ? ? ? ? ? ? ? strlcat(buf,"\n",win_size);
+ ? ? ? ? ? ? ? atomicio(vwrite, STDOUT_FILENO, buf, strlen(buf));
+ ? ? ? } else
+ ? ? ? ? ? ? ? atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
? ? ? ?last_update = now;
?}
@...
2007 Sep 03
1
Code/comment mismatch in delegated administration code.
...mount. Am I right? If I am right, the patch below
implements my thinking.
--- uts/common/fs/zfs/zfs_vfsops.c
+++ uts/common/fs/zfs/zfs_vfsops.c
@@ -608,11 +608,9 @@
goto out;
}
- if (error = secpolicy_vnode_owner(cr, vattr.va_uid)) {
- goto out;
- }
-
- if (error = VOP_ACCESS(mvp, VWRITE, cr, td)) {
+ if (secpolicy_vnode_owner(cr, vattr.va_uid) != 0 &&
+ VOP_ACCESS(mvp, VWRITE, cr, td) != 0) {
+ error = EPERM;
goto out;
}
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
F...
2007 Nov 09
1
Patch for progressmeter.c
...us rate */
+ format_rate(buf + strlen(buf), win_size - strlen(buf),
+ delta_pos);
+ strlcat(buf, "/s ", win_size);
+
/* ETA */
if (!transferred)
stalled += elapsed;
@@ -224,6 +237,7 @@ refresh_progress_meter(void)
atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
last_update = now;
+ last_pos = cur_pos;
}
/*ARGSUSED*/
@@ -270,6 +284,7 @@ void
stop_progress_meter(void)
{
alarm(0);
+ char lbuf[10];
if (!can_output())
return;
@@ -277,7 +292,9 @@ stop_progress_...
2006 May 14
1
scp patch to delete source files after copy
...-p" : "",
+ delete_source ? " -u" : "",
targetshouldbedirectory ? " -d" : "");
(void) signal(SIGPIPE, lostconn);
***************
*** 651,659 ****
haderr = errno;
fd = -1;
}
! if (!haderr)
(void) atomicio(vwrite, remout, "", 1);
! else
run_err("%s: %s", name, strerror(haderr));
(void) response();
}
--- 658,672 ----
haderr = errno;
fd = -1;
}
! if (!haderr) {
! if (delete_source) {
! if (verbose_mode) {
! fprintf(stderr, "Deleting source: %...
2017 Aug 04
4
Filter files received on scp server
Hey,
So, I would be looking at type A. Forgive me if my understanding of how OpenSSH operates is not reflective of reality. I am assuming that, the file transfer is happening somewhat logically, with a name being known, content written, blah blah.
>From reading scp.c, it appears that, the client end at least knows the file name so I must assume the server end must be given it.
I am hoping to
2018 Dec 10
2
[PATCH] cleanup of global variables server/client_version_string in sshconnect.c
...r **client_version_stringp)
{
/* Send our own protocol version identification. */
- xasprintf(&client_version_string, "SSH-%d.%d-%.100s\r\n",
+ xasprintf(client_version_stringp, "SSH-%d.%d-%.100s\r\n",
PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_VERSION);
- if (atomicio(vwrite, connection_out, client_version_string,
- strlen(client_version_string)) != strlen(client_version_string))
+ if (atomicio(vwrite, connection_out, *client_version_stringp,
+ strlen(*client_version_stringp)) != strlen(*client_version_stringp))
fatal("write: %.100s", strerror(errn...
2016 Jan 19
6
FWD: [patch] scp + UTF-8
...uf),
" %02d:%02d", minutes, seconds);
if (bytes_left > 0)
- strlcat(buf, " ETA", win_size);
+ strlcat(buf, " ETA", sizeof(buf));
else
- strlcat(buf, " ", win_size);
+ strlcat(buf, " ", sizeof(buf));
}
- atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1);
+ atomicio(vwrite, STDOUT_FILENO, buf, strlen(buf));
last_update = now;
}
Index: scp.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/scp.c,v
retrieving revision 1.184
diff -u -p -r1.184 scp.c
--- scp.c 27...
2003 Oct 08
4
OS/390 openssh
...9;d':
@@ -579,6 +591,13 @@
if (result != amt)
haderr = result >= 0 ? EIO : errno;
}
+#ifdef CHARSET_EBCDIC
+ if (binary) {
+ /* Convert to EBCDIC */
+ /* ssh will convert back to ASCII */
+ __atoe_l(bp->buf,amt);
+ }
+#endif
if (haderr)
(void) atomicio(vwrite, remout, bp->buf, amt);
else {
@@ -908,7 +927,13 @@
if (limitbw)
bwlimit(4096);
-
+#ifdef CHARSET_EBCDIC
+ if (binary) {
+ /* Convert back to ASCII */
+ /* ssh has converted to EBCDIC */
+ __etoa_l(bp->buf,count);
+ }
+#endif
if (count == bp->cnt) {
/...
2007 Jul 24
1
ssh client does not timeout if the network fails after ssh_connect but before ssh_exchange_identification, even with Alive options set
Hello,
I am testing ssh with occasional network disconnection between server and
client during these days. I found ssh sometimes hangs if the disconnection
happens after the connection is established but before
ssh_exchange_identification completes. The ssh configuration files show that
both client and server alive options are set.
In /etc/ssh/ssh_config:
# Send keepalive messages to the server.
2007 Oct 31
26
[Bug 1386] New: OpenSSH 4.7p1 compile error in atomicio.c under Tru64 4.0f
https://bugzilla.mindrot.org/show_bug.cgi?id=1386
Summary: OpenSSH 4.7p1 compile error in atomicio.c under Tru64
4.0f
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.7p1
Platform: Alpha
OS/Version: Tru64
Status: NEW
Severity: major
Priority: P2
Component: Build
2011 Jun 22
3
sandbox pre-auth privsep child
...t;parent_sock = s[1];
+ box->systrace_fd = -1;
+ box->child_pid = 0;
+
+ return box;
+}
+
+void
+ssh_sandbox_child(struct ssh_sandbox *box)
+{
+ char whatever = 0;
+
+ close(box->parent_sock);
+ /* Signal parent that we are ready */
+ debug3("%s: ready", __func__);
+ if (atomicio(vwrite, box->child_sock, &whatever, 1) != 1)
+ fatal("%s: write: %s", __func__, strerror(errno));
+ /* Wait for parent to signal for us to go */
+ if (atomicio(read, box->child_sock, &whatever, 1) != 1)
+ fatal("%s: read: %s", __func__, strerror(errno));
+ debug3("...
2019 Jan 19
2
Status of SCP vulnerability
Hello,
I would like to request an update of the progress regarding fixes for the recently disclosed SCP vulnerability (CVE-2018-20685, CVE-2019-6111, CVE-2019-6109, CVE-2019-6110)
It has been stated that CVE-2018-20685 has been patched in november but there are currently no information available on the progress of patches regarding the other CVEs.
Will there be a patched release any time soon?
2011 Jun 02
2
preauth privsep logging via monitor
...%s: no log channel", __func__);
+
+ buffer_init(&log_msg);
+ buffer_put_int(&log_msg, 0); /* filled in with length below */
+ buffer_put_int(&log_msg, level);
+ buffer_put_cstring(&log_msg, msg);
+ put_u32(buffer_ptr(&log_msg), buffer_len(&log_msg) - 4);
+ if (atomicio(vwrite, mon->m_log_sendfd, buffer_ptr(&log_msg),
+ buffer_len(&log_msg)) != buffer_len(&log_msg))
+ fatal("%s: write: %s", __func__, strerror(errno));
+ buffer_free(&log_msg);
+}
+
int
mm_is_monitor(void)
{
Index: monitor_wrap.h
========================================...
2015 Mar 03
2
openssh-SNAP-20150304 issues
...? "<none>" : active_test_name,
*subtest_info != '\0' ? " - " : "", subtest_info);
}
#ifdef SIGINFO
static void
siginfo(int unused __unused)
{
char buf[256];
[67;1H[K:[67;1H[67;1H[K
test_info(buf, sizeof(buf));
atomicio(vwrite, STDERR_FILENO, buf, strlen(buf));
}
#endif
void
test_start(const char *n)
{
assert(active_test_name == NULL);
assert((active_test_name = strdup(n)) != NULL);
*subtest_info = '\0';
if (verbose_mode)
printf("test %u - \"%s\": &q...
2013 Apr 19
8
[PATCH 0 of 8] blktap3/libvhd: Introduce VHD library.
This patch series introduces the VHD library. It is based on the blktap2 one,
with changes coming from the blktap2.5 one.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
2010 Jan 14
1
ssh(1) multiplexing rewrite
...ing = 1;
- }
-
if (quit_pending)
break;
@@ -1841,9 +1831,8 @@ client_input_channel_req(int type, u_int
chan_rcvd_eow(c);
} else if (strcmp(rtype, "exit-status") == 0) {
exitval = packet_get_int();
- if (c->ctl_fd != -1) {
- /* Dispatch to mux client */
- atomicio(vwrite, c->ctl_fd, &exitval, sizeof(exitval));
+ if (c->ctl_chan != -1) {
+ mux_exit_message(c, exitval);
success = 1;
} else if (id == session_ident) {
/* Record exit value of local session */
Index: clientloop.h
===================================================================...
2013 Jul 15
21
[PATCH 00 of 21 RESEND] blktap3/drivers: Introduce tapdisk server.
This patch series copies the core of the tapdisk process from blktap2, with
updates coming from blktap2.5.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>