Git development
 help / color / mirror / Atom feed
* [PATCH] Trivial typofix in file creation mode.
@ 2005-04-17  8:04 Junio C Hamano
  0 siblings, 0 replies; only message in thread
From: Junio C Hamano @ 2005-04-17  8:04 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

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) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-17  8:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-17  8:04 [PATCH] Trivial typofix in file creation mode Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox