[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#708419: openssh-client: ssh-copy-id leads to rm -f * (local vs. dash)



Colin Watson <cjwatson@debian.org> (15/05/2013):
> Forwarded upstream, thanks.  However, I think you may have misdiagnosed
> this due to the way you tested it; 'local' works just fine in dash if
> it's inside a function, as it is in ssh-copy-id:
> 
>   $ dash
>   $ populate_new_ids() {
>   >   local foo=bar
>   >   echo $foo
>   > }
>   $ populate_new_ids
>   bar
>   $ 

That part was a bit too quick (on my way out), but I'm pretty certain
the rm -f came from ssh-copy-id (I started with a strace -f, and PIDs
confirm this).

> Maybe mktemp failed in some other way.  Did ~/.ssh exist before running
> this command?  mktemp won't create leading directories.

IIRC (I don't have the machine or the logs handy), mktemp succeeded.

I'll try to instrument that tomorrow with the coworker who suffered
this.

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: