Bugzilla – Attachment 2269 Details for
Bug 2105
ssh-copy-id can "rm -f *" if mktemp fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix rm bug
copyid-norm.diff (text/plain), 811 bytes, created by
Damien Miller
on 2013-05-16 10:23:44 AEST
(
hide
)
Description:
Fix rm bug
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2013-05-16 10:23:44 AEST
Size:
811 bytes
patch
obsolete
>Index: contrib/ssh-copy-id >=================================================================== >RCS file: /var/cvs/openssh/contrib/ssh-copy-id,v >retrieving revision 1.13 >diff -u -p -r1.13 ssh-copy-id >--- contrib/ssh-copy-id 21 Mar 2013 23:17:37 -0000 1.13 >+++ contrib/ssh-copy-id 16 May 2013 00:22:32 -0000 >@@ -196,7 +196,11 @@ populate_new_ids() { > > umask 0177 > local L_TMP_ID_FILE=$(mktemp ~/.ssh/ssh-copy-id_id.XXXXXXXXXX) >- trap "rm -f $L_TMP_ID_FILE*" EXIT TERM INT QUIT >+ if test $? -ne 0 -o "x$L_TMP_ID_FILE" = "x" ; then >+ echo "mktemp failed" 1>&2 >+ exit 1 >+ fi >+ trap "rm -f $L_TMP_ID_FILE ${L_TMP_ID_FILE}.pub" EXIT TERM INT QUIT > printf '%s: INFO: attempting to log in with the new key(s), to filter out any that are already installed\n' "$0" >&2 > NEW_IDS=$( > eval $GET_ID | {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2105
:
2269
|
2270
|
2271