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

Re: gitk doesn't work w/o sudo.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 20, 2009, 21:10 UTC
Message-ID
<alpine.DEB.1.00.0901202209450.3586@pacific.mpi-cbg.de>
In-Reply-To
<c94f8e120901201020g32fad692p214fdf1640a4796f@mail.gmail.com>
Hi,
On Tue, 20 Jan 2009, Dilip M wrote:
Show 35 quoted lines
> On Tue, Jan 20, 2009 at 10:46 PM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> > 'd try running it with strace, and then search the output for stat()
> > calls involving <something>/.git.
> 
> Seems like we are almost there....here is the log..
> 
> dm-laptop:~/repos/atria> grep gitk /tmp/gitk_1.log
> execve("/usr/bin/gitk", ["/usr/bin/gitk"], [/* 37 vars */]) = 0
> open("/usr/bin/gitk", O_RDONLY)         = 3
> execve("/usr/bin/wish8.4", ["/usr/bin/wish8.4", "/usr/bin/gitk",
> "--"], [/* 37 vars */]) = 0
> stat("/usr/bin/gitk", {st_mode=S_IFREG|0755, st_size=237778, ...}) = 0
> open("/usr/bin/gitk", O_RDONLY)         = 6
> lstat("/usr/share/gitk", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> lstat("/usr/share/gitk/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> lstat("/usr/share/gitk/lib/msgs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> access("/usr/share/gitk/lib/msgs/en_in.msg", F_OK) = -1 ENOENT (No
> such file or directory)  <======
> lstat("/usr/share/gitk", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> lstat("/usr/share/gitk/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> lstat("/usr/share/gitk/lib/msgs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> access("/usr/share/gitk/lib/msgs/en.msg", F_OK) = -1 ENOENT (No such
> file or directory)       <======
> stat("/home/dm/.gitk", {st_mode=S_IFREG|0644, st_size=683, ...}) = 0
> open("/home/dm/.gitk", O_RDONLY)        = 6
> writev(5, [{"\22\0\7\0\16\0@\3\'\0\0\0\37\0\0\0\10NG\0\4\0\0\0gitk\20"...,
> 48}], 1) = 48
> writev(5, [{"\22\0\7\0\16\0@\3(\1\0\0\37\1\0\0\10AME\4\0\0\0gitk\22"...,
> 112}], 1) = 112
> 
> dm-laptop:~/repos/atria> ls -l /usr/share/gitk/lib/msgs/en_in.msg
> ls: cannot access /usr/share/gitk/lib/msgs/en_in.msg: No such file or directory
> 
> But how is it working when  I do 'sudo'..
Let's find out.  You can run the strace with sudo, too.
I bet it uses another git.

Ciao, Dscho

Previous: Dilip MNext: Jing Xue
Message 11 of 13 in “gitk doesn't work w/o sudo.”
  1. Dilip MJan 19, 2009
  2. Reece DunnJan 19, 2009
  3. Dilip MJan 19, 2009
  4. Brian FosterJan 20, 2009
  5. Dilip MJan 20, 2009
  6. Matthieu MoyJan 20, 2009
  7. Dilip MJan 20, 2009
  8. Reece DunnJan 20, 2009
  9. Johannes SchindelinJan 20, 2009
  10. Dilip MJan 20, 2009
  11. Johannes SchindelinJan 20, 2009
  12. Jing XueJan 19, 2009
  13. Dilip MJan 19, 2009

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.