search for: wfd

Displaying 20 results from an estimated 52 matches for "wfd".

Did you mean: fd
2009 Aug 19
1
[PATCH] Correct checks for dup failure in guestfs_launch
...ect checks for dup failure. --- src/guestfs.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/guestfs.c b/src/guestfs.c index 58a0354..04bd4e8 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -1165,16 +1165,16 @@ guestfs_launch (guestfs_h *g) close (wfd[1]); close (rfd[0]); - int fail = 0; - fail |= dup (wfd[0]); - fail |= dup (rfd[1]); - close (wfd[0]); - close (rfd[1]); - - if (fail) { + if (dup (wfd[0]) == -1) { + dup_failed: perror ("dup failed"); _exit (1); } + if (dup (rfd[1]) ==...
2019 Jan 22
1
[PATCH] fix build failure when CONFIG_KLIBC_ZLIB is not set
...int ffd = open(path, O_RDONLY); int rv = -1; +#ifdef CONFIG_KLIBC_ZLIB unsigned char gzip_magic[2]; +#endif if (ffd < 0) goto barf; +#ifdef CONFIG_KLIBC_ZLIB if (xpread(ffd, gzip_magic, 2, 0) == 2 && gzip_magic[0] == 037 && gzip_magic[1] == 0213) { FILE *wfd = fopen("/dev/ram0", "w"); @@ -67,6 +70,9 @@ static int rd_copy_image(const char *path) rv = load_ramdisk_compressed(path, wfd, 0); fclose(wfd); } else { +#else + { +#endif int dfd = open("/dev/ram0", O_WRONLY); if (dfd < 0) goto barf; diff --git a...
2013 Mar 07
4
[PATCH 0/4] Small refactorings of the protocol layer.
As the start of work to add remote support, I'm taking a close look at the protocol layer in the library. These are some small cleanups. Rich.
2006 Mar 21
2
[PATCH] initramfs: CPIO unpacking fix
...============================================================== --- linux-2.6.15.orig/init/initramfs.c +++ linux-2.6.15/init/initramfs.c @@ -249,6 +249,7 @@ static int __init do_name(void) if (dry_run) return 0; if (S_ISREG(mode)) { + sys_unlink(collected); if (maybe_link() >= 0) { wfd = sys_open(collected, O_WRONLY|O_CREAT, mode); if (wfd >= 0) { @@ -263,6 +264,7 @@ static int __init do_name(void) sys_chmod(collected, mode); } else if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { + sys_unlink(collected); if (maybe_link() == 0) {...
2006 Jan 08
3
Allow --without-privsep build.
I've been trying to cut down the size of openssh so I can run it on my Nokia 770. One thing which helps a fair amount (and will help even more when I get '-ffunction-sections -fdata-sections --gc-sections' working) is to have the option of compiling out privilege separation... Is it worth me tidying this up and trying to make it apply properly to the OpenBSD version? Does the openbsd
2017 Jul 26
0
[PATCH] disp: Silence DCB warnings.
Most of these errors seem to be WFD related. Official documentation says dcb type 8 is reserved. It's probably used for WFD. Silence the warning in either case. Connector type 70 is stated to be a virtual connector for WiFi display. Since we know this, don't warn that we don't. Signed-off by: Rosen Penev <rosenp at g...
2019 Jan 23
0
[PATCH v2] fix build failure when CONFIG_KLIBC_ZLIB is not set
...00644 --- a/usr/kinit/ramdisk_load.c +++ b/usr/kinit/ramdisk_load.c @@ -46,6 +46,7 @@ static int change_disk(const char *devpath, int rfd, int disk) return open(devpath, O_RDONLY); } +#ifdef CONFIG_KLIBC_ZLIB /* Also used in initrd.c */ int load_ramdisk_compressed(const char *devpath, FILE * wfd, off_t ramdisk_start) @@ -133,6 +134,14 @@ err2: err1: return -1; } +#else +int load_ramdisk_compressed(const char *devpath, FILE * wfd, + off_t ramdisk_start) +{ + fprintf(stderr, "Compressed ramdisk not supported\n"); + return -1; +} +#endif static int load_ramdisk...
2019 Jan 24
0
[klibc:master] fix build failure when CONFIG_KLIBC_ZLIB is not set
...00644 --- a/usr/kinit/ramdisk_load.c +++ b/usr/kinit/ramdisk_load.c @@ -46,6 +46,7 @@ static int change_disk(const char *devpath, int rfd, int disk) return open(devpath, O_RDONLY); } +#ifdef CONFIG_KLIBC_ZLIB /* Also used in initrd.c */ int load_ramdisk_compressed(const char *devpath, FILE * wfd, off_t ramdisk_start) @@ -133,6 +134,14 @@ err2: err1: return -1; } +#else +int load_ramdisk_compressed(const char *devpath, FILE * wfd, + off_t ramdisk_start) +{ + fprintf(stderr, "Compressed ramdisk not supported\n"); + return -1; +} +#endif static int load_ramdisk...
2014 Mar 23
0
[PATCH] [channels.c] Remove wrong channel_new() comment
...box-seccomp-filter.c] Soft-fail stat() syscalls. Add XXX to remind myself to add sandbox violation logging via the log socket. diff --git a/channels.c b/channels.c index 9efe89c..72f166d 100644 --- a/channels.c +++ b/channels.c @@ -265,8 +265,7 @@ channel_register_fds(Channel *c, int rfd, int wfd, int efd, } /* - * Allocate a new channel object and set its type and socket. This will cause - * remote_name to be freed. + * Allocate a new channel object and set its type and socket. */ Channel * channel_new(char *ctype, int type, int rfd, int wfd, int efd, -------------- nex...
2006 Feb 21
1
[PATCH] initramfs: multiple CPIO unpacking fix
...============================================================== --- linux-2.6.15.orig/init/initramfs.c +++ linux-2.6.15/init/initramfs.c @@ -249,6 +249,7 @@ static int __init do_name(void) if (dry_run) return 0; if (S_ISREG(mode)) { + sys_unlink(collected); if (maybe_link() >= 0) { wfd = sys_open(collected, O_WRONLY|O_CREAT, mode); if (wfd >= 0) { @@ -263,6 +264,7 @@ static int __init do_name(void) sys_chmod(collected, mode); } else if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { + sys_unlink(collected); if (maybe_link() == 0) {...
2010 Jan 14
1
ssh(1) multiplexing rewrite
...===================== RCS file: /cvs/src/usr.bin/ssh/channels.c,v retrieving revision 1.301 diff -u -p -r1.301 channels.c --- channels.c 11 Jan 2010 01:39:46 -0000 1.301 +++ channels.c 14 Jan 2010 03:07:48 -0000 @@ -235,7 +235,6 @@ channel_register_fds(Channel *c, int rfd c->rfd = rfd; c->wfd = wfd; c->sock = (rfd == wfd) ? rfd : -1; - c->ctl_fd = -1; /* XXX: set elsewhere */ c->efd = efd; c->extended_usage = extusage; @@ -323,6 +322,9 @@ channel_new(char *ctype, int type, int r c->output_filter = NULL; c->filter_ctx = NULL; c->filter_cleanup = NULL; +...
2009 Aug 18
8
src/ is now warning-free, too
These patches first make src/ warning free, and then turn on the strict warning options. 75 0001-build-suppress-an-ignored-write-return-value-warning.patch 38 0002-build-suppress-an-ignored-dup-return-value-warning.patch 27 0003-generator.ml-suppress-signed-unsigned-compare-warnin.patch 48 0004-build-don-t-perform-arithmetic-on-void-pointers.patch 30
2010 Jan 28
31
[PATCH 0 of 4] aio event fd support to blktap2
Get blktap2 running on pvops. This mainly adds eventfd support to the userland code. Based on some prior cleanup to tapdisk-queue and the server object. We had most of that in XenServer for a while, so I kept it stacked. 1. Clean up IPC and AIO init in tapdisk-server. [I think tapdisk-ipc in blktap2 is basically obsolete. Pending a later patch to remove it?] 2. Split tapdisk-queue into
2008 Oct 01
16
[Bug 1528] New: sshd hangs when pasting more than 2k of text
https://bugzilla.mindrot.org/show_bug.cgi?id=1528 Summary: sshd hangs when pasting more than 2k of text Product: Portable OpenSSH Version: 5.1p1 Platform: Sparc OS/Version: Solaris Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: unassigned-bugs at mindrot.org
2006 Nov 01
0
No subject
...32 2002 +++ channels.c Tue Jul 2 14:35:39 2002 @@ -1278,6 +1278,9 @@ buffer_len(&c->output) > 0) { data = buffer_ptr(&c->output); dlen = buffer_len(&c->output); + /* XXX - hack - do not apply - LBB */ + if (dlen > 8192) + dlen = 8192; len = write(c->wfd, data, dlen); if (len < 0 && (errno == EINTR || errno == EAGAIN)) return 1; I've not tried all possible combinations for the magic number "8192". But, a value of 16384 is too big (does not fix the problem). I've not encountered a hang after applying this patch...
2004 Dec 03
2
INITRAMFS: allow no trailer
...hanged, 6 insertions(+), 3 deletions(-) diff -puN init/initramfs.c~allow-no-trailer init/initramfs.c --- gr_work/init/initramfs.c~allow-no-trailer 2004-12-03 16:54:02.778579302 -0600 +++ gr_work-miltonm/init/initramfs.c 2004-12-03 16:54:02.789577561 -0600 @@ -241,10 +241,9 @@ static __initdata int wfd; static int __init do_name(void) { state = SkipIt; - next_state = Start; + next_state = Reset; if (strcmp(collected, "TRAILER!!!") == 0) { free_hash(); - next_state = Reset; return 0; } if (dry_run) @@ -295,7 +294,7 @@ static int __init do_symlink(void) sys_symlink(coll...
2024 Aug 30
0
ProxyJump: Connection reset by peer
...eof - local intermediate sshd (localproxy, [60bc::1], 10.140.38.21): https://dpaste.org/v4hr2/raw debug3: send packet: type 91 debug2: channel 0: read failed rfd 6 maxlen 32768: Connection reset by peer debug2: channel 0: read failed debug2: chan_shutdown_read: channel 0: (i0 o0 sock 6 wfd 6 efd -1 [closed]) debug2: channel 0: input open -> drain debug2: channel 0: ibuf empty debug2: channel 0: send eof debug3: send packet: type 96 - remote sshd (target.gbdcs.net, 10.140.225.49): https://dpaste.org/fUhVN/raw debug3: send packet: type 20 [preauth] debug1: SSH2_MSG_KEX...
2024 May 16
2
[Bug 3691] New: Connection to localhost succeeds with disabled MAC
...max 32768 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: exec request accepted on channel 0 debug2: channel 0: rcvd eof debug2: channel 0: output open -> drain debug2: channel 0: obuf empty debug2: chan_shutdown_write: channel 0: (i0 o1 sock -1 wfd 6 efd 7 [write]) debug2: channel 0: output drain -> closed debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow at openssh.com reply 0 debug2: channel 0: rcvd eow debug2: chan_shutdown_read: channel 0: (i0 o3 sock -1 wfd 5 ef...
2008 Aug 04
1
Hanging ssh sessions with openssh-5.1p1 and Solaris 8 & 10
Since we upgraded OpenSSH from 5.0p1 to 5.1p1 on our Solaris 8 boxes (I know, I know, we should upgrade or retire them...), we've started experiencing problems with slogin'ing into these boxes, running vi, and pasting text into the vi session. As long as we are pasting in less that 1024 characters it's fine. With >= 1024 characters, the session hangs. If you run
2001 Feb 22
3
intermittent stderr
The command "ssh ls -l /doesnotexist" gives various responses: Running from a 200 MHz PentiumPro with dsa key added to ssh-agent: Mistakes worst to fast machine: To a faster 600 MHz dual processor i686 600 MHz machine: ls: /doesnotexist: No such file or directory -- correct nothing at all -- wrong ls: select: Bad file descriptor -- wrong