Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/pkg_add.c  ·  View all commits
200 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
B
checksum: use blake2b everywhere we can
Baptiste Daroussin
7 days ago 3ad388e
B
rcscript: rewrite entirely to be safer
Baptiste Daroussin
8 days ago 2e3e34b
S
HBSD: Fix build
Shawn Webb
21 days ago c8be391
B
triggers: fix execution of per packages triggers on pkg add/register
Baptiste Daroussin
21 days ago ee156e7
S
HBSD: Resolve merge conflict
Shawn Webb
22 days ago 783edb6
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
I
libpkg: fix --register-only with empty packages
Isaac Freund
1 month ago 1f99b96
I
libpkg: fix --register-only to populate config file contents
Isaac Freund
1 month ago 2ec66d7
B
add: ignore dead symlinks for provides/requires
Baptiste Daroussin
1 month ago 4b0ddce
B
add: resolve shlibs and provides via symlink directory layout
Baptiste Daroussin
1 month ago a8e6f14
B
add: skip osversion check when force is set
Baptiste Daroussin
1 month ago 6050aa1
B
pkg_add: remove existing file before renaming temp directory
Baptiste Daroussin
1 month ago bc7e444
B
libpkg: fix getgrnam_r related errors
Baptiste Daroussin
1 month ago a159fe4
B
pkg: messages improvements
Baptiste Daroussin
2 months ago b21ebf9
B
add: remove redundant function call
Baptiste Daroussin
2 months ago f413cc3
B
add: deduplicate code
Baptiste Daroussin
2 months ago 1a15261
B
add: fix potential heap overflow
Baptiste Daroussin
2 months ago 7f34fff
B
fix external merge tool: ensure the buffer is null terminated
Baptiste Daroussin
2 months ago 002313b
B
Fix crash when using external merge tool
Baptiste Daroussin
2 months ago 7b98991
B
triggers: add a "pkg_upgrade" variable for per packages triggers
Baptiste Daroussin
2 months ago 4b9ba49
B
triggers: add per package triggers
Baptiste Daroussin
2 months ago c0006d2
P
pkg: avoid a bunch of warnings
Pierre Pronchery
2 months ago cf901ce
B
Revert "extract: do not extract a file which is identical to the installed one"
Baptiste Daroussin
2 months ago a39a76e
B
hardlinks: add an explicit error in failing case
Baptiste Daroussin
2 months ago e1928d6
B
Fix EBADF crash
Baptiste Daroussin
2 months ago 38ed98b
B
add: check for version when running pkg add ./something.pkg
Baptiste Daroussin
2 months ago e6d8ee7
B
extract: if the renamed failed, keep the extracted file with a .pkgnew suffix
Baptiste Daroussin
2 months ago d514868
B
extract: do not extract a file which is identical to the installed one
Baptiste Daroussin
2 months ago 5716742
R
Fix gname duplication typo in do_extract_dir to use archive_entry_gname
R. Christian McDonald
2 months ago d4bb7fe
B
Plug more memory leaks
Baptiste Daroussin
2 months ago 73cabc8
B
fix inverted logic in previous commit
Baptiste Daroussin
3 months ago 7dde416
B
memory: drastically reduce memory usage
Baptiste Daroussin
3 months ago 83243c7
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
E
pkg_install: Add --register-only
Emmanuel Vadot
5 months ago cb296b1
B
3way merge: complain loudly about missing local checksum (and prevent crash)
Baptiste Daroussin
6 months ago 4766647
M
libpkg: Fill out package file uname and gname fields at extraction time
Mark Johnston
6 months ago ef2d40e
s
utils: generalize user/group name to uid/gid functions
strssndktn
6 months ago 087ece7
M
libpkg: Add METALOG entries for intermediate directories
Mark Johnston
7 months ago 01b87cc
M
libpkg: Clean up create_dir() a bit
Mark Johnston
7 months ago 9c026f3
s
pkgdb: track mtime in pkgdb
strssndktn
7 months ago 08bf9b3
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 months ago 7dccd36
B
add: backout support for provides/requires
Baptiste Daroussin
8 months ago 647fd0b
M
libpkg: Implement backup_libraries for split upgrades
Mark Johnston
8 months ago 433a079
S
Merge commit '1c5f88ead8e4239aed25ebf383117342c5c72850'
Shawn Webb
10 months ago 290e90b
B
pkg_add: fix another typo in comment
Baptiste Daroussin
11 months ago 96ea632
B
pkg_add: fix typo in comment
Baptiste Daroussin
11 months ago cc949e0
B
universe: fix package selection
Baptiste Daroussin
11 months ago ff2168a
K
libpkg: add the path when we fail to do a 3way merge
Kyle Evans
11 months ago 021456d
B
pkg_add: write the cache in the proper location
Baptiste Daroussin
11 months ago cc8d5f2
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
pkg_add_cache: move cache to /var/cache/pkg/pkg_add_cache
Baptiste Daroussin
11 months ago 326a320
B
add: implement a persistent cache
Baptiste Daroussin
11 months ago 2147e6a
B
provides/requires: use bsearch everywhere possible
Baptiste Daroussin
11 months ago 30787ee
B
kv: insert all keyvalues directly sorted
Baptiste Daroussin
11 months ago c329d0a
B
add: attempt to further improve pkg add performances
Baptiste Daroussin
11 months ago 009e7a8
B
add: experiment with bsearch to see if it reduce the CPU bounding
Baptiste Daroussin
1 year ago d33f29c
B
vec: simplify vec_init() usage
Baptiste Daroussin
1 year ago 6401b82
B
non pkgbase: convert system shlibs to vector of char *
Baptiste Daroussin
1 year ago b8cd71e
B
pkg add: replace hash table with vector + bsearch
Baptiste Daroussin
1 year ago a5133db
B
pkg_add: spelling fixes
Baptiste Daroussin
1 year ago 51fcd75
B
pkg_add: fix debug message
Baptiste Daroussin
1 year ago d364684
B
pkg_add: more debug
Baptiste Daroussin
1 year ago c45883f
B
pkg_add: Add debug
Baptiste Daroussin
1 year ago f615a6e
B
refacto: convert actions_t to vector
Baptiste Daroussin
1 year ago 9c84584
B
vec: convert pkg-message to vector
Baptiste Daroussin
1 year ago c01f2b7
B
pkg: convert stringlist_t to charv_t
Baptiste Daroussin
1 year ago 3c90262
B
vec: use vec_foreach
Baptiste Daroussin
1 year ago e67b79e
B
add: improve performances
Baptiste Daroussin
1 year ago 83f64ac
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
B
fix inverted logic
Baptiste Daroussin
1 year ago 432572f
B
Reapply "add: micro optimize"
Baptiste Daroussin
1 year ago 117668c
b
Revert "add: micro optimize"
bapt
1 year ago f7e6f12
B
Remove debug
Baptiste Daroussin
1 year ago 797e313
B
add: micro optimize
Baptiste Daroussin
1 year ago 4fc93e6
B
script-noexec: prevent anyscript which would call an external script
Baptiste Daroussin
1 year ago 0c1fea2
B
fix inverted logic
Baptiste Daroussin
1 year ago a020145
B
add: support caching without pkgbase
Baptiste Daroussin
1 year ago b9ab8be
B
progress: fix progression and job count
Baptiste Daroussin
1 year ago 777ce1f
B
Fix memory leak
Baptiste Daroussin
1 year ago 30c1b2a
B
pkg add: cache the span of the filesystem
Baptiste Daroussin
1 year ago f6a4eb6
B
Revert "Backout support for provides/requires for pkg add"
Baptiste Daroussin
1 year ago 1ca498b
B
extract: rework directories vs symlinks handling
Baptiste Daroussin
1 year ago e2c0d0d
B
pkg: multiple fixes
Baptiste Daroussin
1 year ago a18ee3e
B
extract: accept /usr/local/lib/compat as symlinks
Baptiste Daroussin
1 year ago e5f4f3a
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 97b10c5
B
extract: plug another memory leak
Baptiste Daroussin
1 year ago e7a8022
B
extract: fix memory leaks
Baptiste Daroussin
1 year ago dd6b6c8
B
extract: fix regression when dealing with symlinks in the path
Baptiste Daroussin
1 year ago ab3906b
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 2498431
B
vec: rename pkgvec.h into pkg/vec.h
Baptiste Daroussin
1 year ago 22dddf2
B
pkg_add: replace stringlist with c_charv_t
Baptiste Daroussin
1 year ago 6485306
B
tempdirs: use vectors instead or linked list
Baptiste Daroussin
1 year ago 30b564e
B
hardlinks: use vector instead of linked list
Baptiste Daroussin
1 year ago 49cabe5
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 25ee7d0
K
More leak fixes as well as skipped leaks.
Keve
1 year ago 306fc12
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 834d09c
K
More leak fixes.
Keve
1 year ago 66e26ae
S
Merge remote-tracking branch 'freebsd/main'
Shawn Webb
1 year ago 84c2214
B
altabi: rename the private field arch into altabi
Baptiste Daroussin
1 year ago 72cc0cd
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c62eec6
K
Fix crash on MacOS/amd64 due to undefined behaviour of strlcpy.
Keve
1 year ago a4a647b
S
HBSD: Use the right type for buffer manipulation
Shawn Webb
1 year ago 7c3c63d
S
HBSD: Fix potential integer underflow
Shawn Webb
1 year ago e831abf
S
HBSD: Fix buffer overflow
Shawn Webb
1 year ago b275360
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 76191f7
G
Add support for using external 3-way merge tool when handling @config items
Gleb Popov
1 year ago 19d215b
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 7c30b5f
B
utimensat: consider utimensat should be supported everywhere
Baptiste Daroussin
1 year ago b8c3a96
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 851a6a4
B
add: fix typo
Baptiste Daroussin
1 year ago 88fc133
B
groups: register installed groups in /var/db/pkg/groups
Baptiste Daroussin
1 year ago 7c89c85
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
1 year ago 33f4711
B
STR*EQ: use macros where possible
Baptiste Daroussin
1 year ago 053f4a2
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago fd4c88b
B
extraction: fix an upgrade issue with symlinks becoming directories
Baptiste Daroussin
2 years ago e482b66
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9856def
B
add: also only backup overwritten config file only when really needed
Baptiste Daroussin
2 years ago 0043a02
B
add: only create pkgsave if the files are actually differents
Baptiste Daroussin
2 years ago f169036
M
libpkg: Fix database transaction leaks
Mark Johnston
2 years ago 65f6aba
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago a1aca60
B
Backout support for provides/requires for pkg add
Baptiste Daroussin
2 years ago 537d39e
B
pkg add: reduce memory usage and speed up
Baptiste Daroussin
2 years ago 1763490
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
B
memory: only load the compact manifest
Baptiste Daroussin
2 years ago 057d93f
B
add: repect provides/requires
Baptiste Daroussin
3 years ago 98597ca
B
add: fix inverted logic
Baptiste Daroussin
3 years ago 9ca5e55
B
add: collect all pkg files around the package to install
Baptiste Daroussin
3 years ago cbd6eec
B
libpkg: kill useless pkg_manifest_key API
Baptiste Daroussin
3 years ago eec0e90
S
HBSD: Resolve merge conflict
Shawn Webb
3 years ago 9c7360f
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
B
pkg_add: greatly reduce the number of open files
Baptiste Daroussin
3 years ago a0cb322
B
tempdir: factorize code to get the temp directories
Baptiste Daroussin
3 years ago f0d252c
M
libpkg: Try to merge config files across split upgrades
Mark Johnston
3 years ago 4ddb234
M
libpkg: Remove an always-true check
Mark Johnston
3 years ago bc9b290
M
libpkg: Simplify some logic in pkg_add_common()
Mark Johnston
3 years ago 62e6287
M
libpkg: Remove the "force" parameter from pkg_delete_files()
Mark Johnston
3 years ago 2be9fd9
B
regression: fix hardlink creation
Baptiste Daroussin
3 years ago 0a8b8a0
B
create hardlink: improve error message
Baptiste Daroussin
3 years ago 36b275f
B
Ensure we are picking the exact temp directory
Baptiste Daroussin
3 years ago 40173db
B
extract: create the directories relatively to the tempdirs
Baptiste Daroussin
3 years ago 3ec1926
B
hardlinks: deduplicate code
Baptiste Daroussin
3 years ago 4eb062b
B
fix indentation
Baptiste Daroussin
3 years ago 209f1dd
B
chflags: adapt chflags handling to the recent changes
Baptiste Daroussin
3 years ago 4662568
B
extract: rework the extraction of a package
Baptiste Daroussin
3 years ago c82baac
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago e294fea
B
triggers: rework the cleanup triggers
Baptiste Daroussin
3 years ago 399d7a2
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
messages: convert to tllist
Baptiste Daroussin
3 years ago 0b8ce04
B
tempfile: improve the filename creation to reduce ENAMETOOLONG risks
Baptiste Daroussin
4 years ago ce75303
B
triggers: also run triggers when an empty directory is "touched"
Baptiste Daroussin
4 years ago 225062d
B
API: convert all abused hash table into stringlist
Baptiste Daroussin
4 years ago 9b49b83
B
hardlinks: rework handling of hardlinks
Baptiste Daroussin
4 years ago 70b98f1
B
Fix unused variable
Baptiste Daroussin
4 years ago 7347761
B
pkg add: really execute once and only once the trigger
Baptiste Daroussin
4 years ago 721ad15
B
files ignore: to not extract temporary files in the first place
Baptiste Daroussin
4 years ago 0106f22
F
pkg-add: reset dpath for each loop iteration #1995
Franco Fichtner
4 years ago 373c4f7
F
pkg-add: provide fallback for version mismatch
Franco Fichtner
4 years ago 913cf56
B
Revert "pkg-add: provide fallback for version mismatch"
Baptiste Daroussin
4 years ago 6154195
B
triggers: when doing manual pkg add: execute the triggers
Baptiste Daroussin
4 years ago 3e41a0e
B
pkg: allow filtering files at install time
Baptiste Daroussin
4 years ago 913c637
B
Use pkghash_get_value
Baptiste Daroussin
4 years ago ff7a207
B
scripts: fix logic inversion which worked fine by accident
Baptiste Daroussin
4 years ago f9fc9f1
B
convert from khash to pkghash
Baptiste Daroussin
4 years ago 438bcc6
F
pkg-add: provide fallback for version mismatch
Franco Fichtner
4 years ago 270501e
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
G
libpkg/add: fix strchr -> strrchr for the name in pkg_globmatch
Greg V
5 years ago f27396b
G
libpkg/add: check that path is not NULL in pkg_globmatch
Greg V
5 years ago 47df718
B
Get rid of the dirname and basename which implement differs depending on OSes
Baptiste Daroussin
5 years ago 3c5dde3
t
no execute post-install when extract fails
tigergao99
5 years ago 94a192a
K
libpkg: open up rootfd for old package cleanup on upgrade
Kyle Evans
5 years ago ec6efbf
B
Implement triggers
Baptiste Daroussin
5 years ago a4de42d
B
merge3: get rid of utstring
Baptiste Daroussin
5 years ago d88f0c4
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
Do not use err.h in the library
Baptiste Daroussin
5 years ago 479bf5c
A
Use bigger buffers for getpwnam_r and getgrnam_r
Alan Somers
5 years ago 7389fa4
A
Correctly detect errors from getpwnam_r and getgrnam_r
Alan Somers
5 years ago 3be70e6
B
Run lua scripts before shell scripts
Baptiste Daroussin
5 years ago 5db007b
B
Preserve file attributes when copying with lua
Baptiste Daroussin
5 years ago 694301e
S
HBSD: Support filesystem extended attributes
Shawn Webb
5 years ago dcf0ba3
B
Create a compat-libraries package when backing up libraries
Baptiste Daroussin
6 years ago 10920fb
B
allow to pass a savepoint name when registring a package
Baptiste Daroussin
6 years ago 87e8073
B
Implement a mechanism to backup libraries during upgrade
Baptiste Daroussin
6 years ago d3bf49e
K
libpkg: don't create .pkgnew if the file didn't exist
Kyle Evans
6 years ago e47d3d3
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
Prefix the temporary files with pkgtemp
Baptiste Daroussin
6 years ago 93457ee
B
Use context variable to determine the status of developer_mode
Baptiste Daroussin
6 years ago 2200f40
B
Completly finish the ability to save untracked files
Baptiste Daroussin
6 years ago 88eb0b2
B
Save files that are not tracked and will be overwritten by a new package
Baptiste Daroussin
6 years ago bbdeecd
B
Revert code that should not have crept in 8dd464b255b1697122156e4d3ee38ae0cb6c990c
Baptiste Daroussin
6 years ago 7b82558
B
Let the rc restart function handle itself, its configuration switch
Baptiste Daroussin
6 years ago 475f0db
B
Remove useless else block
Baptiste Daroussin
6 years ago 958d37d
B
Reduce code duplication
Baptiste Daroussin
6 years ago c48758d
E
When extracting files and they already exists on the local filesystem but aren't part of any local package, save the current file as .pkgsave
Emmanuel Vadot
6 years ago 344fc3c
B
Add support for scripts in lua
Baptiste Daroussin
6 years ago 485bdd9
B
Improve the output of messages
Baptiste Daroussin
6 years ago 14e1aae
G
Fix typo in comment.
Guido Falsi
7 years ago ed650c7
B
Fix -Wformat-truncation warnings
Baptiste Daroussin
7 years ago 18cf338