From: Mark Bradshaw <bradshaw@staff.crosswalk.com>
To: 'Corinna Vinschen' <cygwin@cygwin.com>
Subject: RE: SFTP server when / is c:\
Date: Wed, 25 Jul 2001 04:24:00 -0000 [thread overview]
Message-ID: <911C684A29ACD311921800508B7293BA010A8AD1@cnmail> (raw)
Mhm. I like your version better! Thanks for patching my patch. <grin>
I really appreciate all the work you do to make openssh (and others) run
smoothly in cygwin. Here's a cyber pat on the back.
Mark
-----Original Message-----
From: Corinna Vinschen [ mailto:cygwin@cygwin.com ]
Sent: Wednesday, July 25, 2001 5:22 AM
To: cygwin
Subject: Re: SFTP server when / is c:\
On Tue, Jul 24, 2001 at 04:44:44PM -0400, Mark Bradshaw wrote:
> Sure thing. Here's the update diffs.
I have patched your patch slightly to be less intrusive. Your
patch to sftp-server.c changed the content of `path' which
has been given as parameter. I changed the call to snprintf
instead:
diff -u -p -r1.34 sftp-server.c
--- sftp-server.c 2001/07/04 03:32:33 1.34
+++ sftp-server.c 2001/07/25 08:44:31
@@ -756,8 +756,8 @@ process_readdir(void)
stats = xrealloc(stats, nstats *
sizeof(Stat));
}
/* XXX OVERFLOW ? */
- snprintf(pathname, sizeof pathname,
- "%s/%s", path, dp->d_name);
+ snprintf(pathname, sizeof pathname, "%s%s%s", path,
+ strcmp(path, "/") ? "/" : "", dp->d_name);
if (lstat(pathname, &st) < 0)
continue;
stat_to_attrib(&st, &(stats[count].attrib));
I have send the patch to the openssh-unix-dev mailing list a few
minutes ago. The Cygwin openssh-2.9p2-3 version containg your
patch is on sourceware already and will show up on the mirrors
at least tomorrow.
Thanks for tracking this down and especially for providing a patch!
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
next reply other threads:[~2001-07-25 4:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 4:24 Mark Bradshaw [this message]
2001-07-25 7:15 ` Corinna Vinschen
-- strict thread matches above, loose matches on Subject: below --
2001-07-24 13:44 Mark Bradshaw
2001-07-24 14:59 ` Corinna Vinschen
2001-07-25 2:22 ` Corinna Vinschen
2001-07-24 12:44 Mark Bradshaw
2001-07-24 13:30 ` Corinna Vinschen
2001-07-24 11:50 Mark Bradshaw
2001-07-24 12:45 ` Corinna Vinschen
2001-07-24 11:50 Mark Bradshaw
2001-07-24 9:44 Mark Bradshaw
2001-07-24 9:52 ` Larry Hall (RFK Partners, Inc)
2001-07-24 10:45 ` Christopher Faylor
2001-07-24 11:27 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=911C684A29ACD311921800508B7293BA010A8AD1@cnmail \
--to=bradshaw@staff.crosswalk.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).