Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/scripts.c  ·  View all commits
115 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
J
Fix typos in source code
Jose Luis Duran
7 days ago 10f92f1
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
pkg: messages improvements
Baptiste Daroussin
2 months ago b21ebf9
P
pkg: avoid a bunch of warnings
Pierre Pronchery
2 months ago cf901ce
P
pkg: avoid a bunch of warnings
Pierre Pronchery
2 months ago 3b9bfd7
B
C23: first round at using __has_include
Baptiste Daroussin
3 months ago 0f84b83
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 months ago 7dccd36
M
libpkg: Provide the METALOG path to pkg scripts
Mark Johnston
9 months ago ae1861a
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
B
script-noexec: prevent anyscript which would call an external script
Baptiste Daroussin
1 year ago 0c1fea2
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 76191f7
G
Do not error out if procctl has nothing to reap
Gleb Popov
1 year ago 46b48f4
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
1 year ago 33f4711
B
cocci: fix NELEM vs nitems mix
Baptiste Daroussin
1 year ago bf078b6
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 7649071
r
use the nitems() macro instead of sizeof
rilysh
2 years ago 6e21b2e
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 76bfe81
R
Introduce PKG_ISCHROOTED script environment variable
R. Christian McDonald
2 years ago 8c802c5
B
Revert "cleanup: replace memset with some inline declaration"
Baptiste Daroussin
3 years ago 991ca6b
B
cleanup: replace memset with some inline declaration
Baptiste Daroussin
3 years ago 8cfcfbc
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
B
scripts: do not close /dev/null when spawning a process
Baptiste Daroussin
3 years ago 0cbfe69
g
Fix /dev/null not open before chroot
gearnode
3 years ago 5a0cc7f
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
scripts: expose the package name to the scripts (lua and shell)
Baptiste Daroussin
5 years ago c4f96ea
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
J
scripts.c: improve pty read error handling
John Hood
5 years ago 505326e
B
Fix small style issues
Baptiste Daroussin
5 years ago d46c9f6
J
Fix hang with pkg scripts that start daemons.
John Hood
5 years ago d40dbc6
B
Use open_memstream p1
Baptiste Daroussin
5 years ago 383d27c
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
B
Fix typo
Baptiste Daroussin
5 years ago 2bd2332
A
(lua_)scripts.c: gather remaining output after loop exits
Alex Richardson
5 years ago 3aa8ed7
A
Fix child process handling in scripts.c and lua_scripts.c
Alex Richardson
5 years ago 722c3a9
J
Prevent potential hang with scripts
Jung-uk Kim
5 years ago c41f3f2
B
Fix pkg hanging if some process spawn by the script remains running after script itself exits.
Baptiste Daroussin
6 years ago a4c28a6
B
Format comment
Baptiste Daroussin
6 years ago fd403b8
B
Simplify code testing for socket being closed
Baptiste Daroussin
6 years ago b2ef3ed
B
If nothing has been read on the socket, maybe the otherside of the socket is closed
Baptiste Daroussin
6 years ago 89ca637
B
scripts: do not try to close both ends of the pipe before running the scripts
Baptiste Daroussin
6 years ago ffd3c82
B
Close most possible open fds in shell scripts
Baptiste Daroussin
6 years ago d27c824
B
FreeBSD's /bin/sh does not allow redirecting to FD > 9
Baptiste Daroussin
6 years ago 74368a8
B
Add a variable to notify scripts when they are running for an upgrade
Baptiste Daroussin
6 years ago 5f91af0
B
Remove never used upgrade scripts
Baptiste Daroussin
6 years ago 5278d0b
B
Properly implement a message channel for scripts
Baptiste Daroussin
6 years ago 767fbd7
B
Fix @sample not working anymore
Baptiste Daroussin
6 years ago 4cbe457
B
Always close stdin when running the script to prevent any interactive script to work during install/delete/upgrade phases
Baptiste Daroussin
7 years ago 6167cb7
G
Allow a "successful failure" in a post-install script when exiting with status '3'.
Glen Barber
8 years ago 983eb72
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
Move the globals under a ctx object to prepare for newer api
Baptiste Daroussin
9 years ago 7ea4379
B
Improve some error messages
Baptiste Daroussin
9 years ago 603bad2
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Ensure pre-install script makes install fails
Baptiste Daroussin
9 years ago 8301e2b
B
plug resource leaks in case of errors
Baptiste Daroussin
10 years ago e3780c3
B
Only call getpid() once for the reaper part of scripts
Baptiste Daroussin
10 years ago 745f5d6
B
Always set PKG_ROOTDIR so we can depend on it for install scripts
Brad Davis
10 years ago ccdde41
B
Remove useless sbuf_get()
Baptiste Daroussin
10 years ago 5734f64
B
Export to destination directory as PKG_ROOTDIR for scripts
Baptiste Daroussin
11 years ago 17625dc
W
Merge pull request #1188 from wca/check-procctl-kernel-support
Will Andrews
11 years ago 6eb7736
W
Make sure the kernel allows PROCCTL_REAP_ACQUIRE.
Will Andrews
11 years ago 2d94413
B
Explicit which syscall fails in case procctl returns EINVAL
Baptiste Daroussin
11 years ago be63cc9
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago a5266e8
B
Fix error message
Baptiste Daroussin
11 years ago 0551142
B
Prevent scripts to leave process behind themselves
Baptiste Daroussin
11 years ago dd0732c
B
Make struct pkg a proper structure
Baptiste Daroussin
11 years ago 99c2768
B
New option to disable running scripts
Baptiste Daroussin
12 years ago 50e59d1
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
B
Add debug message to scripts
Baptiste Daroussin
12 years ago 9003d30
B
Fix wrong pkg_sbuf_printf usage
Baptiste Daroussin
12 years ago 92a03b9
B
Use pkg_sbuf_printf
Baptiste Daroussin
12 years ago 8285fe3
J
Fix build with gcc 4.7 by removing a useless assert
John Marino
13 years ago f64405e
A
Merge remote-tracking branch 'origin/master' into periodic
Alex Kozlov
13 years ago 677d1b3
B
Use _PATH_BSHELL instead of /bin/sh
Bryan Drewery
13 years ago f8ce927
M
Style: Add dash to first line of copyright header.
Matthew Seaman
13 years ago bfe0183
B
Create a new DEBUG_SCRIPTS configuration option to run shell script with -x mode
Baptiste Daroussin
13 years ago 47b9901
R
Merge branch 'master' of git://github.com/pkgng/pkgng
Roman Naumann
13 years ago 838dd4c
B
Allow extra space for environment and command when piping to /bin/sh
Bryan Drewery
13 years ago 8249eea
B
Pipe to /bin/sh -s to execute scripts when they exceed ARG_MAX
Bryan Drewery
13 years ago 34c1b4f
B
Report the failure, but continue execution on script failed
Baptiste Daroussin
13 years ago 4158cd4
B
switch script execution to posix_spawn return EPKG_FATAL in case of execution failure
Baptiste Daroussin
13 years ago e2cdcbf
M
Merge branch 'master' of github.com:pkgng/pkgng
Matthew Seaman
13 years ago 9ab23fe
B
Do reuse a variable when you need the previous one first
Baptiste Daroussin
13 years ago fb67664
B
Fix script execution
Baptiste Daroussin
13 years ago 32b5ce8
B
Refactor script handling, this also allow to order scripts the right way when installing, deleting and upgrading
Baptiste Daroussin
13 years ago cb6ad50
B
Adding the copyright to the library
Baptiste Daroussin
14 years ago 8dbe8b5
J
Move private headers to private/ subfolder. Dont use private headers in the frontend.
Julien Laffaye
14 years ago b6d30db
F
Merge branch 'master' of git://github.com/pkgng/pkgng
Frederic Culot
14 years ago 542fe9d
B
Add and assert to make sure the type passed to the pkg_script_run is a known type.
Baptiste Daroussin
14 years ago 44a26b2
B
Merge pull request #133 from yuripankov/master
Baptiste Daroussin
14 years ago dc3c8a6
Y
Fix sbuf handling:
Yuri Pankov
14 years ago 04e40c9
B
Use a single function to retrive pkg informations:
Baptiste Daroussin
14 years ago 6757141
B
First step toward real safe upgrade.
Baptiste Daroussin
14 years ago 1cd01f2
M
Merge remote-tracking branch 'upstream/master'
Marin Atanasov Nikolov
14 years ago 0c21ced
B
Merge pull request #47 from grimreaper/master
Baptiste
14 years ago 95ff8a4
E
constify what can be constified
Eitan Adler
14 years ago daf38f4
M
Merge remote-tracking branch 'upstream/master' and resolve conflicts
Marin Atanasov Nikolov
14 years ago f279bf9
j
Nuke pkg_error: eveything is an event now!!
jlaffaye
14 years ago 54d9a45
j
Merge branch 'master' of github.com:pkgng/pkgng
jlaffaye
14 years ago ef6da07
P
Use ERROR_BAD_ARG macro in pkg_script_run()
Philippe Pepiot
14 years ago 393501e
W
Merge remote branch 'pkgng/master'
Will Andrews
14 years ago f4f6257
P
scripts.c deinstall script is waiting DEINSTALL instead of PRE-DEINSTALL
Philippe Pepiot
14 years ago 16aeef4
P
script.c: code simplification.
Philippe Pepiot
14 years ago e12cd5a
W
Merge remote branch 'pkgng/master'
Will Andrews
14 years ago dc7f425
j
Huge refactoring.
jlaffaye
14 years ago 4add9d0
W
Merge remote branch 'pkgng/master'
Will Andrews
14 years ago 1447b56
B
Fix @dirrmtry catching and order the post_install execution
Baptiste Daroussin
14 years ago 4eaab47
B
Revert my setenv(pkg_prefix) flz solution is better
Baptiste Daroussin
14 years ago b1812b2
F
Set PKG_PREFIX before executing scripts.
Florent Thoumie
14 years ago d43ef1c
B
This is dumb but for compatibility we need to export PKG_PREFIX for scripts
Baptiste Daroussin
14 years ago 2a62ba5
j
Fix argument passed to DEINSTALL.
jlaffaye
14 years ago 7c466b5
W
Merge remote branch 'pkgng/master'
Will Andrews
14 years ago ce2dd24
B
Die @exec/@unexec
Baptiste Daroussin
14 years ago 4cab8e0
B
rework scripts handling
Baptiste Daroussin
14 years ago 9eeb4d0