Paul D
253d8e8d4e
Docs grammar fixes
...
joined split infinitives, and relocated adverbs appropriately.
2022-12-29 22:26:54 +00:00
Thomas Waldmann
1a6b60f415
mode, user/group id/name: minor code refactor, remove None values at transfer time, #6908
...
https://github.com/borgbackup/borg/issues/6908#issuecomment-1224910916
2022-09-16 21:12:29 +02:00
Thomas Waldmann
3280603e43
acls cleanup (linux), #6908
...
https://github.com/borgbackup/borg/issues/6908#issuecomment-1224872992
also:
- added some type assertions
- made NULL pointer checks more explicit
- fsencode only called when needed
- structure of code more similar now on all OSes
2022-09-14 13:57:40 +02:00
Andrey Bienkowski
f75a6152ab
‘PyUnicode_AsUnicode’ is deprecated
...
Fix compilation warnings:
```
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.9.10/x64/include/python3.9 -c src/borg/platform/posix.c -o build/temp.linux-x86_64-3.9/src/borg/platform/posix.o
src/borg/platform/posix.c: In function ‘__pyx_pf_4borg_8platform_5posix_2swidth’:
src/borg/platform/posix.c:1572:3: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
1572 | __pyx_t_2 = __Pyx_PyUnicode_AsUnicode(__pyx_v_s); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 19, __pyx_L1_error)
| ^~~~~~~~~
In file included from /opt/hostedtoolcache/Python/3.9.10/x64/include/python3.9/unicodeobject.h:1026,
from /opt/hostedtoolcache/Python/3.9.10/x64/include/python3.9/Python.h:93,
from src/borg/platform/posix.c:19:
/opt/hostedtoolcache/Python/3.9.10/x64/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
```
Ref: https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_AsUnicode
2022-03-07 10:36:22 +03:00
Emmo Emminghaus
e5c22eac0d
remove accidental change
2018-11-10 23:39:28 +01:00
Emmo Emminghaus
973921df5a
remove unneded code and remarks, added needed except clause
2018-11-10 21:56:39 +01:00
Emmo Emminghaus
b997d5ba5b
move code from borg.helpers.usergroup to borg.platform.posix
2018-11-10 21:43:45 +01:00
Thomas Waldmann
a51fca49bf
process_alive: add some assertions
...
(cherry picked from commit 2bf1b29e8e
)
2018-07-17 19:06:26 +02:00
Thomas Waldmann
99149684bf
xattr: move to platform package, use cython, fixes #2495
...
this code used to live in borg.xattr and used ctypes
(and was the only ctypes-using code in borg).
the low level code now was converted to cython and
the platform code moved to platform package.
got rid of the code that tried to find the libc.
2018-07-07 15:47:56 +02:00
Thomas Waldmann
5e4df7782b
refactor/move hostname/fqdn related funcs, see #3471
...
- move stuff to platform.base (should be platform independent according
to the docs).
- bump platform API version
- parseformat: import fqdn from platform instead of recomputing it
This is not yet fixing #3471 , just a preparation for it.
2017-12-24 04:12:02 +01:00
Thomas Waldmann
6f94949a36
migrate locks to child PID when daemonize is used
...
also:
increase platform api version due to change in get_process_id behaviour.
2017-08-08 03:46:44 +02:00
Marian Beermann
2fe37dba7f
umount: try fusermount, then try umount
2017-07-24 13:55:32 +02:00
Marian Beermann
b9770c348f
posix: use fully-qualified hostname + node ID
...
The node ID is usually the 48 bit MAC of the primary network
interface.
2017-01-12 00:54:17 +01:00
Thomas Waldmann
afab1cc9b0
Merge branch '1.0-maint'
...
# Conflicts:
# borg/platform.py
# src/borg/archiver.py
# src/borg/helpers.py
# src/borg/platform/darwin.pyx
# src/borg/platform/freebsd.pyx
# src/borg/platform/linux.pyx
# src/borg/testsuite/__init__.py
2016-11-17 23:56:34 +01:00
Marian Beermann
676e69cac4
Parse & pass BORG_HOSTNAME_IS_UNIQUE env var to enable stale lock killing
2016-11-07 21:56:40 +01:00
Marian Beermann
cc14975f2d
Add tests for stale lock killing and platform.process_alive
2016-11-07 21:56:07 +01:00
Marian Beermann
c562f7750c
Move platform-dependent code to platform package
2016-11-07 21:54:16 +01:00
Lee Bousfield
b652f4039c
Remove trailing whitespace
2016-07-28 10:35:41 -04:00
Marian Beermann
0ca1a18b33
Make borg.platform a package
2016-05-31 15:38:56 +02:00