From: Rafal Rusin <rafal.rusin@gmail.com>
To: git@vger.kernel.org
Subject: 'error: unable to set permission to './objects/...'
Date: Sun, 22 Nov 2009 21:02:12 +0100 [thread overview]
Message-ID: <9bbf67fa0911221202r605de38coc2496b1f09123725@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
Hello,
I'm hosting git repository on filesystem with 'chmod <some-file>'
causing permission denied error (it's smbfs mounted directory),
When I was doing push to such repo using file:// protocol, I got
following error:
error: unable to set permission to './objects/...'
I did a small fix to sha1_file.c (patch in attachment) and git now
warns when unable to chmod, and continues push. This resolved problem.
What do you think about applying it?
Regards,
--
Rafał Rusin
http://rrusin.blogspot.com
http://www.touk.pl
http://top.touk.pl
[-- Attachment #2: permission.patch --]
[-- Type: text/x-diff, Size: 449 bytes --]
diff --git a/sha1_file.c b/sha1_file.c
index 4ea0b18..305e751 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -2272,8 +2272,9 @@ int move_temp_to_file(const char *tmpfile, const char *filename)
}
out:
- if (set_shared_perm(filename, (S_IFREG|0444)))
- return error("unable to set permission to '%s'", filename);
+ if (set_shared_perm(filename, (S_IFREG|0444))) {
+ warning("unable to set permission to '%s'", filename);
+ }
return 0;
}
next reply other threads:[~2009-11-22 20:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-22 20:02 Rafal Rusin [this message]
2009-11-22 22:09 ` 'error: unable to set permission to './objects/...' Miklos Vajna
2009-11-22 23:27 ` Junio C Hamano
2009-11-23 9:35 ` Rafal Rusin
2009-11-23 10:54 ` Junio C Hamano
2009-11-24 0:59 ` Rafal Rusin
2009-11-23 9:52 ` Martin Langhoff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9bbf67fa0911221202r605de38coc2496b1f09123725@mail.gmail.com \
--to=rafal.rusin@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox