git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Trivial typofix in file creation mode.

From
Junio C Hamano <junkio@cox.net>
Date
Apr 17, 2005, 08:04 UTC
Message-ID
<7vd5st25j5.fsf@assigned-by-dhcp.cox.net>

This patch fixes an obvious typo whose consequence is rather disastrous in the file creation mode. Relative to Linus HEAD 85dd8bdfbbc6b1431230ebadc7e0af2ca94fed9f.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 checkout-cache.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

checkout-cache.c: 3b4f2644861bbd74713c51ef8e612d2fc84941d3 --- checkout-cache.c +++ checkout-cache.c 2005-04-17 00:55:34.000000000 -0700

@@ -54,7 +54,7 @@
 {
 	int fd;
 
-	mode = (mode & 0100) ? 777 : 666;
+	mode = (mode & 0100) ? 0777 : 0666;
 	fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, mode);
 	if (fd < 0) {
 		if (errno == ENOENT) {
Message 1 of 1 in “Trivial typofix in file creation mode.”
  1. Trivial typofix in file creation mode.Junio C Hamano, Apr 17, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.