remove exec bit from kojid logs and uploaded files (patch by Enrico Scholz)
This commit is contained in:
parent
d12d078412
commit
5f75700583
2 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ def log_output(path, args, outfile, uploadpath, cwd=None, logerror=0, append=0,
|
|||
flags = os.O_CREAT | os.O_WRONLY
|
||||
if append:
|
||||
flags |= os.O_APPEND
|
||||
fd = os.open(outfile, flags)
|
||||
fd = os.open(outfile, flags, 0666)
|
||||
os.dup2(fd, 1)
|
||||
if logerror:
|
||||
os.dup2(fd, 2)
|
||||
|
|
|
|||
|
|
@ -3963,7 +3963,7 @@ class RootExports(object):
|
|||
# elif offset == 0:
|
||||
# #first chunk, so file should not exist yet
|
||||
# raise koji.GenericError, "file already exists: %s" % fn
|
||||
fd = os.open(fn, os.O_RDWR | os.O_CREAT)
|
||||
fd = os.open(fn, os.O_RDWR | os.O_CREAT, 0666)
|
||||
# log_error("fd=%r" %fd)
|
||||
try:
|
||||
if offset == 0 or (offset == -1 and size == len(contents)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue