mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 21:50:52 +00:00
subprocess.check_call needs to be called with shell=True, else it will
interpret the string as a single path to execute instead of a command
with arguments:
Fixes the following error:
$ /usr/lib/frr/generate_support_bundle.py
Making backup of /var/log/frr/bgp_support_bundle.log
Traceback (most recent call last):
File "/usr/lib/frr/generate_support_bundle.py", line 89, in <module>
main()
File "/usr/lib/frr/generate_support_bundle.py", line 80, in main
stdout=open_with_backup(ofn),
File "/usr/lib/frr/generate_support_bundle.py", line 32, in open_with_backup
subprocess.check_call("mv {0} {0}.prev".format(path))
File "/usr/lib/python3.8/subprocess.py", line 359, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.8/subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mv /var/log/frr/bgp_support_bundle.log /var/log/frr/bgp_support_bundle.log.prev'
Fixes:
|
||
|---|---|---|
| .. | ||
| coccinelle | ||
| etc | ||
| gcc-plugins | ||
| .gitignore | ||
| build-debian-package.sh | ||
| checkpatch.pl | ||
| checkpatch.sh | ||
| cocci.h | ||
| convert-fixedwidth.sh | ||
| fixup-deprecated.py | ||
| frr_babeltrace.py | ||
| frr-llvm-cg.c | ||
| frr-llvm-debuginfo.cpp | ||
| frr-llvm-debuginfo.h | ||
| frr-reload | ||
| frr-reload.py | ||
| frr.in | ||
| frr.service.in | ||
| frr.vim | ||
| frr@.service.in | ||
| frrcommon.sh.in | ||
| frrinit.sh.in | ||
| gen_northbound_callbacks.c | ||
| gen_yang_deviations.c | ||
| generate_support_bundle.py | ||
| git-reindent-branch.py | ||
| indent.py | ||
| lua.scr | ||
| Makefile | ||
| mrlg.txt | ||
| multiple-bgpd.sh | ||
| nhrpd-event-handler.sh | ||
| permutations.c | ||
| release_notes.py | ||
| releasedate.py | ||
| render_md.py | ||
| rrcheck.pl | ||
| rrlookup.pl | ||
| start-stop-daemon.c | ||
| stringmangle.py | ||
| subdir.am | ||
| symalyzer.html | ||
| symalyzer.py | ||
| valgrind.supp | ||
| vty_index.sh | ||
| watchfrr.sh.in | ||
| zc.pl | ||
| zebra.el | ||