search for: wrerr

Displaying 11 results from an estimated 11 matches for "wrerr".

Did you mean: rerr
2000 Aug 18
0
[PATCH] Support symlinks in scp of openssh 2
...o(write, remout, "", 1); @@ -891,4 +920,12 @@ bad: run_err("%s: %s", np, strerror(er if (showprogress) progressmeter(1); + if (buf[0] == 'L') { + if (size >= PIPE_BUF) + SCREWUP("symlink bigger than PIPE_BUF"); + bp[size] = '\0'; + wrerr = (symlink(bp, np) < 0) ? YES : NO; + wrerrno = errno; + goto done; + } if (count != 0 && wrerr == NO && (j = atomicio(write, ofd, bp, count)) != count) { @@ -917,5 +954,4 @@ bad: run_err("%s: %s", np, strerror(er wrerrno = errno; } - (void) res...
2001 May 17
6
scp: Problem when source and destination are identical
If the source and destination file are identical, the receiving scp truncates the file. On the sending end, read() returns 0, and garbage is sent instead of actual data, and the receiving end puts it into the file, which at least confuses the users. -- Florian Weimer Florian.Weimer at RUS.Uni-Stuttgart.DE University of Stuttgart http://cert.uni-stuttgart.de/
2002 Sep 25
0
[Bug 403] New: scp generates sparse file when no space left
...systems. Running tusc on an "scp -t" process shows that ftruncate is being called no matter what. In sink() in file scp.c, we can see: if (ftruncate(ofd, size)) { run_err("%s: truncate: %s", np, strerror(errno)); wrerr = DISPLAYED; } This code fragment should be enclosed in this if condition: if(wrerr == NO){ if (ftruncate(ofd, size)) { run_err("%s: truncate: %s", np, strerror(errno)); wrerr = DISPLAYED;...
2001 May 12
4
Erase the source file open; specify a tempfile name option
...void) response(); + if (response() == 0 && eraseflag && !haderr) { + if (unlink(name) < 0) + run_err("%s: %s", name, strerror(errno)); + } } } @@ -656,7 +679,7 @@ int amt, count, exists, first, mask, mode, ofd, omode; off_t size; int setimes, targisdir, wrerrno = 0; - char ch, *cp, *np, *targ, *why, *vect[1], buf[2048]; + char ch, *cp, *np, *targ, *dest, *why, *vect[1], buf[2048]; struct timeval tv[2]; #define atime tv[0] @@ -770,6 +793,7 @@ np = namebuf; } else np = targ; + dest = *tmpfn? tmpfn : np; curfile = cp; exists = stat(np...
2002 Feb 06
2
SFTP Status Bar..
...if (showprogress) { totalbytes = size; - progressmeter(-1); + updateprogressmeter(0); } statbytes = 0; for (count = i = 0; i < size; i += 4096) { @@ -871,7 +851,8 @@ } } if (showprogress) - progressmeter(1); + updateprogressmeter(1); + if (count != 0 && wrerr == NO && (j = atomicio(write, ofd, bp->buf, count)) != count) { wrerr = YES; @@ -1079,140 +1060,17 @@ } static void -updateprogressmeter(int ignore) +updateprogressmeter(int done) { - int save_errno = errno; - - progressmeter(0); - mysignal(SIGALRM, updateprogressmeter);...
2007 Jun 12
3
[Bug 1236] SCP inappropriate truncate error when copying to FIFO file
http://bugzilla.mindrot.org/show_bug.cgi?id=1236 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|bitbucket at mindrot.org |djm at mindrot.org Attachment #1189 is|0
2002 Dec 03
1
scp "Bad address" errors with strange filesystem block sizes
...cp += j; statbytes += j; } while (amt > 0); if (count == bp->cnt) { /* Keep reading so we stay sync'd up. */ if (wrerr == NO) { j = atomicio(write, ofd, bp->buf, count); The problem here is that it requests the data in chunks of 4096 bytes, but the block size is not a multiple of 4096. One of the read() calls eventually fails with EFAULT when "cp" is past the br...
2002 Jan 30
1
Quick sftp status indicator.
...; + signal(SIGALRM, updateprogressmeter); + alarm(PROGRESSTIME); } statbytes = 0; for (count = i = 0; i < size; i += 4096) { @@ -844,7 +836,8 @@ } } if (showprogress) - progressmeter(1); + progressmeter(1, statbytes, totalbytes, curfile); + if (count != 0 && wrerr == NO && (j = atomicio(write, ofd, bp->buf, count)) != count) { wrerr = YES; @@ -1039,140 +1032,14 @@ exit(1); } -static void +void updateprogressmeter(int ignore) -{ - int save_errno = errno; - - progressmeter(0); - signal(SIGALRM, updateprogressmeter); - alarm(PROGRES...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...if (showprogress) { totalbytes = size; - progressmeter(-1); + updateprogressmeter(0); } statbytes = 0; for (count = i = 0; i < size; i += 4096) { @@ -844,7 +832,8 @@ } } if (showprogress) - progressmeter(1); + updateprogressmeter(1); + if (count != 0 && wrerr == NO && (j = atomicio(write, ofd, bp->buf, count)) != count) { wrerr = YES; @@ -1040,139 +1029,18 @@ } static void -updateprogressmeter(int ignore) -{ - int save_errno = errno; - - progressmeter(0); - signal(SIGALRM, updateprogressmeter); - alarm(PROGRESSTIME); - errno =...
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
2003 Oct 08
4
OS/390 openssh
...,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) { /* Keep reading so we stay sync'd up. */ if (wrerr == NO) { @@ -1072,7 +1097,7 @@ cp = cp0; do { c = (int)*cp; - if (c & 0200) + if (ASC(c) & 0200) goto bad; if (!isalpha(c) && !isdigit(c)) { switch (c) { diff -bur openssh-3.7.1p2.orig/serverloop.c openssh-3.7.1p2/serverloop.c --- openssh-3.7.1p2.orig/serverloop....