Add mask for newly created symlink.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 22 Jul 2016 00:09:52 +0000 (01:09 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 22 Jul 2016 11:07:13 +0000 (12:07 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/rehash.c

index 443c15e13c6b2cc6fb8ed22bc580b692475cc445..aacb1691981ccc105d1cd4764c38125d14336330 100644 (file)
@@ -366,6 +366,7 @@ static int do_dir(const char *dirname, enum Hash h)
                                    strerror(errno));
                         errs++;
                     }
+                    bit_set(idmask, nextid);
                 } else if (remove_links) {
                     /* Link to be deleted */
                     snprintf(buf, buflen, "%s%s%n%08x.%s%d",