Erase the source file open; specify a tempfile name option
Kaelin Colclasure
kaelin at acm.org
Tue May 15 01:47:12 EST 2001
Wayne Davison wrote:
>
> I'm curious how to go about submitting a suggestion that affects both
> the original BSD version and the portable release. A few days ago I
> sent off a BSD-relative patch to openssh at openssh.com. Is this the right
> thing to do? I didn't hear anything back, but it's only been 3 days, so
> I'm probably just being too antsy.
>
> In the meantime, maybe someone else out there would like to check this
> out. Appended is a version of my patch for the latest portable code
> (relative to the CVS version). It adds two new options to scp that I
> find useful:
>
> -E Erase the source file after a successful copy.
> -T file Use "file" as a temporary file that gets renamed into
> each actual destination file.
Hmmm, might it not be better to have the -T option generate a temporary
file name for each file in the copy on its own? After all, it is
possible that a recursive copy might cross a mount point on the
destination system. And in any case it's one less error that the user
might make.
-- Kaelin
More information about the openssh-unix-dev
mailing list