Re: sfskey gen broken
"Timur Alperovich" <[email protected]> Fri, 28 Sep 2007 22:47:50 -0400
| Newsgroups | gmane.comp.file-systems.sfs.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_1008_2376975.1191034070163 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Here is where I put up the patch for that file: http://fs-prisms.blogspot.com/2007/06/fixed-small-bug-and-found-another.html. As I mentioned on the blog, I found another bug, but did not have the time to fix it, as I switched projects. Hope it helps, Timur On 9/28/07, Timur Alperovich <[email protected]> wrote: > > Grant, > > I had the same issue with it and there is indeed an error in the source. > It took me a little while to track it down, but for one of the function > calls the arguments are swapped. I'm gonna try to find out more details for > you as I haven't actually touched this in almost 3 months and at the time > when I asked if anyone would care for the patch no one on the mailing list > responded. > > Timur > > On 9/28/07, Grant Kelly <[email protected]> wrote: > > > > Hi, > > > > I'm getting the following when trying to generate a key: > > > > [root@myhost]# sfskey gen -KP /etc/sfs/sfs_host_key > > sfskey: sfscd not running, limiting sources of entropy > > Creating new key: sfs_host_key#1 (Rabin) > > Key Label: sfs_host_key > > sfskey: > > SK1::AAAARAAAAADnESApM9yVbwiiSzGIx3jmnzw13sKJIHxtMBs09kFwPB81ZRDkBbeQmkPx7AlygOOjsMEQit3eFmKiOuCi5IprAAAARAAAAAF7EVuEzfYb2llc2vYdc/5fjAT1ZeCCB5SCjgf0XJwywxMspDq8Iyq9Zb7f1+5qii99mm+4dddbxEgzCb: > > > > No such file or directory > > sfskey: /etc/sfs/sfs_host_key: No such file or directory > > sfskey: fatal: Not all key save operations succeeded > > > > > > To me, it looks like somehow the actual key is being used instead of the > > > > filename. I tried to look through the code for this mistake, but > > everything I saw seemed correct. > > > > I also tried just copying the output text to the sfs_host_key file, but > > then it complained it couldn't parse the key, so obviously I got the > > format wrong. > > > > This is on RedHat Enterprise 4. I'm still having problems compiling on > > Solaris 10 as I mentioned previously. > > > > -- > > Grant Kelly > > [email protected] > > (775) 674 7164 > > Desert Research Institute, Reno, NV > > > > > ------=_Part_1008_2376975.1191034070163 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Here is where I put up the patch for that file: <a href="http://fs-prisms.blogspot.com/2007/06/fixed-small-bug-and-found-another.html">http://fs-prisms.blogspot.com/2007/06/fixed-small-bug-and-found-another.html</a>. As I mentioned on the blog, I found another bug, but did not have the time to fix it, as I switched projects. <br><br>Hope it helps,<br>Timur<br><br><div><span class="gmail_quote">On 9/28/07, <b class="gmail_sendername">Timur Alperovich</b> <<a href="mailto:[email protected]">[email protected]</a>> wrote:</span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Grant,<br><br>I had the same issue with it and there is indeed an error in the source. It took me a little while to track it down, but for one of the function calls the arguments are swapped. I'm gonna try to find out more details for you as I haven't actually touched this in almost 3 months and at the time when I asked if anyone would care for the patch no one on the mailing list responded. <br><span class="sg"><br>Timur</span><div><span class="e" id="q_1154f2784f978198_2"><br><br><div><span class="gmail_quote">On 9/28/07, <b class="gmail_sendername">Grant Kelly</b> <<a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> [email protected]</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br><br>I'm getting the following when trying to generate a key:<br><br>[root@myhost]# sfskey gen -KP /etc/sfs/sfs_host_key<br>sfskey: sfscd not running, limiting sources of entropy<br>Creating new key: sfs_host_key#1 (Rabin) <br> Key Label: sfs_host_key<br>sfskey:<br>SK1::AAAARAAAAADnESApM9yVbwiiSzGIx3jmnzw13sKJIHxtMBs09kFwPB81ZRDkBbeQmkPx7AlygOOjsMEQit3eFmKiOuCi5IprAAAARAAAAAF7EVuEzfYb2llc2vYdc/5fjAT1ZeCCB5SCjgf0XJwywxMspDq8Iyq9Zb7f1+5qii99mm+4dddbxEgzCb: <br>No such file or directory<br>sfskey: /etc/sfs/sfs_host_key: No such file or directory<br>sfskey: fatal: Not all key save operations succeeded<br><br><br>To me, it looks like somehow the actual key is being used instead of the <br>filename. I tried to look through the code for this mistake, but<br>everything I saw seemed correct.<br><br>I also tried just copying the output text to the sfs_host_key file, but<br>then it complained it couldn't parse the key, so obviously I got the <br>format wrong.<br><br>This is on RedHat Enterprise 4. I'm still having problems compiling on<br>Solaris 10 as I mentioned previously.<br><br>--<br>Grant Kelly<br><a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> [email protected] </a><br>(775) 674 7164<br>Desert Research Institute, Reno, NV<br><br></blockquote></div><br> </span></div></blockquote></div><br> ------=_Part_1008_2376975.1191034070163--