]> andersk Git - openssh.git/blobdiff - authfile.c
- Allow root access to any key. Patch from
[openssh.git] / authfile.c
index f2699708f32ea2bddddf8d0be067b4d3af64b2b2..1e46ea6106c8c652ae797fa020a97697576dffe0 100644 (file)
@@ -228,7 +228,7 @@ load_private_key(const char *filename, const char *passphrase,
 
        /* check owner and modes */
        if (fstat(fd, &st) < 0 ||
-           (st.st_uid != 0 && st.st_uid != getuid()) ||
+           (st.st_uid != 0 && getuid() != 0 && st.st_uid != getuid()) ||
            (st.st_mode & 077) != 0) {
                close(fd);
                error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
This page took 0.038961 seconds and 4 git commands to generate.