Comments (2)
openindiana64: path = '/run/user/100/pytest', mode = 511, pretty_deadly = True
openindiana64:
openindiana64: def ensure_dir(path, mode=stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO, pretty_deadly=True):
openindiana64: """
openindiana64: Ensures that the dir exists with the right permissions.
openindiana64: 1) Make sure the directory exists in a race-free operation
openindiana64: 2) If mode is not None and the directory has been created, give the right
openindiana64: permissions to the leaf directory. The current umask value is masked out first.
openindiana64: 3) If pretty_deadly is True, catch exceptions, reraise them with a pretty
openindiana64: message.
openindiana64: Returns if the directory has been created and has the right permissions,
openindiana64: An exception otherwise. If a deadly exception happened it is reraised.
openindiana64: """
openindiana64: try:
openindiana64: os.makedirs(path, mode=mode, exist_ok=True)
openindiana64: except OSError as e:
openindiana64: if pretty_deadly:
openindiana64: > raise Error(str(e))
openindiana64: E borg.helpers.errors.Error: Error: [Errno 13] Permission denied: '/run'
openindiana64:
openindiana64: src/borg/helpers/fs.py:40: Error
from borg.
There is no /run
on openindiana:
total 1025
lrwxrwxrwx 1 root root 9 März 29 16:49 bin -> ./usr/bin
drwxr-xr-x 10 root sys 26 März 29 16:58 boot
drwxr-xr-x 247 root sys 250 Apr. 9 18:10 dev
drwxr-xr-x 4 root sys 5 Apr. 9 18:10 devices
drwxr-xr-x 83 root sys 228 Apr. 9 18:11 etc
drwxr-xr-x 3 root sys 3 Okt. 27 16:10 export
dr-xr-xr-x 1 root root 1 Apr. 9 18:11 home
drwxr-xr-x 21 root sys 21 März 29 16:44 kernel
drwxr-xr-x 12 root bin 183 Apr. 9 18:14 lib
drwxr-xr-x 2 root root 3 März 29 16:44 media
drwxr-xr-x 2 root sys 2 März 29 16:49 mnt
dr-xr-xr-x 1 root root 1 Apr. 9 18:11 net
drwxr-xr-x 2 root sys 2 März 29 16:49 opt
drwxr-xr-x 5 root sys 5 Okt. 27 16:10 platform
dr-xr-xr-x 52 root root 480032 Apr. 9 18:49 proc
drwx------ 3 root root 7 Apr. 9 18:14 root
drwxr-xr-x 3 root root 3 März 29 16:44 rpool
drwxr-xr-x 2 root sys 56 März 29 16:58 sbin
drwxr-xr-x 5 root root 5 Okt. 27 16:10 system
drwxrwxrwt 13 root sys 1991 Apr. 9 18:35 tmp
drwxr-xr-x 38 root sys 51 März 29 16:58 usr
drwxr-xr-x 3 root root 3 Apr. 9 18:11 vagrant
drwxr-xr-x 40 root sys 40 März 29 16:52 var
There is /var/run
though:
vagrant@openindiana:~$ ls -l /var
total 57
drwxrwxr-x 9 root sys 15 März 29 16:54 adm
drwxr-xr-x 3 root sys 3 Okt. 27 16:10 apache2
drwxr-xr-x 2 root sys 2 Okt. 27 16:10 audit
drwxr-xr-x 6 root bin 6 Okt. 27 16:10 cache
drwxr-xr-x 2 root sys 2 Okt. 27 16:10 cores
drwxr-xr-x 2 root sys 3 März 29 16:52 cron
drwxr-xr-x 3 root sys 3 Okt. 27 16:10 db
drwxr-xr-x 2 root sys 2 Okt. 27 16:10 empty
drwxr-xr-x 3 root sys 3 Okt. 27 16:10 fm
drwxr-xr-x 2 root bin 2 Okt. 27 16:10 games
drwxr-xr-x 2 daemon daemon 2 Okt. 27 16:10 idmap
drwxr-xr-x 2 root sys 2 Okt. 27 16:10 inet
drwxr-xr-x 2 root sys 3 März 29 16:48 info
drwxr-xr-x 3 root sys 3 Okt. 27 16:10 krb5
drwxr-xr-x 3 root bin 5 März 29 16:48 ld
drwxr-xr-x 2 root sys 2 Okt. 27 16:10 ldap
drwxr-xr-x 4 root sys 4 Okt. 27 16:11 lib
drwxr-xr-x 5 root sys 8 Okt. 27 16:10 log
drwxr-xr-x 2 root bin 2 Okt. 27 16:10 logadm
drwxrwxrwt 3 root mail 3 Okt. 27 16:10 mail
drwxr-xr-x 2 root bin 2 Okt. 27 16:10 news
drwxr-xr-x 4 root bin 4 Okt. 27 16:10 nfs
drwxr-xr-x 3 root sys 3 Okt. 27 16:10 ntp
drwxr-xr-x 4 openldap openldap 4 Okt. 27 16:10 openldap
drwxr-xr-x 2 root sys 2 Okt. 27 16:10 opt
drwxr-xr-x 10 root root 13 Apr. 9 18:14 pkg
drwxrwxrwt 2 root bin 2 Okt. 27 16:10 preserve
drwxr-xr-x 4 root sys 4 Okt. 27 16:10 rsyncd
drwxr-xr-x 10 root sys 2087 Apr. 9 18:16 run
drwxr-xr-x 6 root sys 6 März 29 16:50 sadm
drwxr-xr-x 3 root bin 4 Okt. 27 16:10 saf
drwxr-xr-x 3 root sys 4 März 29 16:48 smb
drwxr-xr-x 9 root bin 9 Okt. 27 16:10 spool
drwxr-xr-x 5 root sys 5 Okt. 27 16:10 svc
drwxrwxrwt 3 root sys 3 Apr. 9 18:35 tmp
drwxr-xr-x 5 root sys 5 Okt. 27 16:10 tpm
drwx------ 3 root smmsp 3 März 29 16:52 user
drwxr-xr-x 3 root bin 5 Okt. 27 16:10 yp
There is no /var/run/user/...
though.
So, guess this is a bug / missing platform support of platformdirs
.
from borg.
Related Issues (20)
- Possible bug in pruning logic with keep-weekly and keep-monthly HOT 7
- netbsd9 vagrant box: broken libxxhash.pc HOT 2
- locking.py seems multiprocess-safe but not thread-safe HOT 3
- `borg check` hangs after errors HOT 5
- pytest startdir: py.path.local argument is deprecated
- Getting "Data integrity error: Invalid segment entry size 0" on fresh repos HOT 9
- Breaking change between b7 and b8 for encrypted repos HOT 5
- --pattern having different outcome in crontab HOT 6
- 2.0.0b5 repositories inaccessible with 2.0.0b8 - KeyError: 'type' in repoobj.py HOT 11
- borg crashes when segment file corrupted, proposed correction HOT 2
- `import-tar` doc actually explains `export-tar` HOT 3
- Crash when remote repo doesn't exist HOT 4
- Borg mount does not read BORG_REPO env variable HOT 5
- Traceback with delete subcommand when no archive is given HOT 2
- vagrant: add ubuntu noble box for borg 1.2 testing HOT 1
- vagrant: freebsd 13 box broken (1.2-maint) HOT 4
- windows: github CI broken HOT 4
- Borg 1.4.0 FreeBSD fat binary on FreeBSD 13.2 HOT 5
- `ls`-like file view or `borg list --depth` to limit subdirectory recursion HOT 3
- borg 1.4 freebsd acl code does not compile on freebsd 13 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from borg.