{"thread":{"id":"77","subject":"[PATCH] Trivial typofix in file creation mode.","startedAt":"2005-04-17T08:04:14Z","lastAt":"2005-04-17T08:04:14Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"454","messageId":"7vd5st25j5.fsf@assigned-by-dhcp.cox.net","threadId":"77","inReplyTo":null,"subject":"[PATCH] Trivial typofix in file creation mode.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-04-17T08:04:14Z","receivedAt":"2005-04-17T08:04:14Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This patch fixes an obvious typo whose consequence is rather\ndisastrous in the file creation mode.  Relative to Linus HEAD\n85dd8bdfbbc6b1431230ebadc7e0af2ca94fed9f.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n\n checkout-cache.c |    2 +-\n 1 files changed, 1 insertion(+), 1 deletion(-)\n\ncheckout-cache.c: 3b4f2644861bbd74713c51ef8e612d2fc84941d3\n--- checkout-cache.c\n+++ checkout-cache.c\t2005-04-17 00:55:34.000000000 -0700\n@@ -54,7 +54,7 @@\n {\n \tint fd;\n \n-\tmode = (mode & 0100) ? 777 : 666;\n+\tmode = (mode & 0100) ? 0777 : 0666;\n \tfd = open(path, O_WRONLY | O_TRUNC | O_CREAT, mode);\n \tif (fd < 0) {\n \t\tif (errno == ENOENT) {\n\n"}]}