| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/fusefs-gitfs/files/ |
Upload File : |
https://github.com/PressLabs/gitfs/issues/258
https://github.com/PressLabs/gitfs/issues/257
--- gitfs/utils/args.py.orig 2019-10-20 11:00:10 UTC
+++ gitfs/utils/args.py
@@ -44,7 +44,7 @@ class Args(object):
("foreground", (False, "bool")),
("branch", ("master", "string")),
("allow_other", (False, "bool")),
- ("allow_root", (True, "bool")),
+ ("allow_root", (False, "bool")),
("commiter_name", (self.get_commiter_user, "string")),
("commiter_email", (self.get_commiter_email, "string")),
("max_size", (10, "float")),
@@ -76,12 +76,6 @@ class Args(object):
return self.check_args(self.set_defaults(args))
def check_args(self, args):
- # check allow_other and allow_root
- if args.allow_other:
- args.allow_root = False
- else:
- args.allow_root = True
-
# check log_level
if args.debug:
args.log_level = "debug"
@@ -182,7 +176,7 @@ class Args(object):
return "{}@{}".format(args.user, socket.gethostname())
def get_repo_path(self, args):
- return tempfile.mkdtemp(dir="/var/lib/gitfs")
+ return tempfile.mkdtemp(prefix="gitfs")
def get_ssh_key(self, args):
return os.environ["HOME"] + "/.ssh/id_rsa"