Bug#740154: permission warning on repo access: unable to access '/root/.config/git/attributes'
Hi, In February, 2014, martin f krafft wrote: > $HOME seems unset when git-daemon starts, which causes > > remote: warning: unable to access '/root/.config/git/attributes': > Permission denied > > to be printed on cloning. > > exporting $HOME e.g. to gitdaemon's home directory, or > $GIT_DAEMON_BASE_PATH fixes this. Maybe the init.d script could do > that? Thanks for reporting, and sorry for the slow reply. gitdaemon's home directory is /nonexistent, so do you mean something like diff --git i/debian/git-daemon-sysvinit.git-daemon.init w/debian/git-daemon-sysvinit.git-daemon.init index cc98a00bad..e1ab4b3947 100644 --- i/debian/git-daemon-sysvinit.git-daemon.init +++ w/debian/git-daemon-sysvinit.git-daemon.init @@ -49,8 +49,10 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started + HOME=/nonexistent \ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 + HOME=/nonexistent \ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 (plus the analogous change for git-daemon-run)? Sincerely, Jonathan
Bug#740154: permission warning on repo access: unable to access '/root/.config/git/attributes'
Source: git-daemon-sysvinit Version: 1:1.8.5.3-1~bpo70+1 Severity: normal Tags: patch $HOME seems unset when git-daemon starts, which causes remote: warning: unable to access '/root/.config/git/attributes': Permission denied to be printed on cloning. exporting $HOME e.g. to gitdaemon's home directory, or $GIT_DAEMON_BASE_PATH fixes this. Maybe the init.d script could do that? -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- .''`. martin f. krafft madduck@d.o Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org `- Debian - when you have better things to do than fixing systems digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
Bug#740154: permission warning on repo access: unable to access '/root/.config/git/attributes'
reopen 740154 found 740154 1:1.8.5.3-1 notfound 740154 1:1.8.5.3-1~bpo70+1 thanks also sprach Andrei POPESCU andreimpope...@gmail.com [2014-02-26 18:45 +0100]: Bugs agains bpo versions should be reported to debian-backports as per http://backports.debian.org/Instructions/#index6h2 Please don't be silly and close the bug. You're right that I should have fixed the version number, but I reported the bug after checking that it was present in the non-backports version too, i.e. there's nothing in the diff causing the bug. -- .''`. martin f. krafft madduck@d.o Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduckhttp://vcs-pkg.org `- Debian - when you have better things to do than fixing systems anyone who is capable of getting themselves made president should on no account be allowed to do the job -- douglas adams digital_signature_gpg.asc Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
Bug#740154: permission warning on repo access: unable to access '/root/.config/git/attributes'
Control: reassign -1 src:git On Mi, 26 feb 14, 21:57:05, martin f krafft wrote: reopen 740154 found 740154 1:1.8.5.3-1 notfound 740154 1:1.8.5.3-1~bpo70+1 thanks also sprach Andrei POPESCU andreimpope...@gmail.com [2014-02-26 18:45 +0100]: Bugs agains bpo versions should be reported to debian-backports as per http://backports.debian.org/Instructions/#index6h2 Please don't be silly and close the bug. You're right that I should have fixed the version number, but I reported the bug after checking that it was present in the non-backports version too, i.e. there's nothing in the diff causing the bug. Ok, than let's also assign it to an existing package, otherwise it won't do much good. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt signature.asc Description: Digital signature