jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

getauthinfo misinterprets key paths #306

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Key paths beginning with "/" or "./" will always be misinterpreted by 
getauthinfo.

diff -r 01665ab22684 appl/cmd/getauthinfo.b
--- a/appl/cmd/getauthinfo.b    Sat Sep 07 11:32:50 2013 +0100
+++ b/appl/cmd/getauthinfo.b    Sun Jan 05 18:04:15 2014 +0000
@@ -63,7 +63,7 @@

    user := user();
    path := keyname;
-   if(path[0] != '/' || len path < 2 || path[0:2] != "./")
+   if(path[0] != '/' && (len path < 2 || path[0:2] != "./"))
        path = "/usr/" + user + "/keyring/" + keyname;

    signer := defaultsigner();

Original issue reported on code.google.com by kristofwycz on 5 Jan 2014 at 6:13

GoogleCodeExporter commented 9 years ago
appl/cmd/getauthinfo.b
dis/getauthinfo.dis
committed changeset 619:0e50cfeb0da5
pushing to https://Charles.Forsyth:***@inferno-os.googlecode.com/hg

thanks

Original comment by Charles....@gmail.com on 5 Jan 2014 at 10:05