Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/private/utils.h  ·  View all commits
148 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 days ago 920c183
B
ucl_parse: add 2 helpers on top of ucl to deduplicate code
Baptiste Daroussin
9 days ago b68de0a
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
s
utils: generalize user/group name to uid/gid functions
strssndktn
6 months ago 087ece7
M
libpkg: Make the RELATIVE_PATH macro more robust
Mark Johnston
7 months ago 52913da
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
tll: finish removing tll from libpkg
Baptiste Daroussin
11 months ago 0a5b324
B
pkg: for all lists insert elements sorted
Baptiste Daroussin
11 months ago abac190
B
utils: remove unused typedef
Baptiste Daroussin
1 year ago 4a2d422
B
utils: add charv_search
Baptiste Daroussin
1 year ago b4c8d82
B
pkg: convert stringlist_t to charv_t
Baptiste Daroussin
1 year ago 3c90262
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
I
libpkg: add SHLIB_PROVIDE_PATHS_* options
Isaac Freund
1 year ago a35c0a3
B
str_ends_with: add a new util function
Baptiste Daroussin
1 year ago f398b0b
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 97b10c5
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 c62eec6
B
c_charv_contains
Baptiste Daroussin
1 year ago ec12d11
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
1 year ago 33f4711
B
streq: generalize the macro
Baptiste Daroussin
1 year ago 91b1b52
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
debug: implement PKG_DEBUG_FLAGS
Baptiste Daroussin
2 years ago 9f817aa
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 adf6f88
K
libpkg: abstract rsa away behind a pkgsign interface
Kyle Evans
2 years ago 6aef916
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9ce36fc
B
repo: isolate the function to RSA sign the content of repo
Baptiste Daroussin
2 years ago 54399a9
B
Remove orphaned fucntion definition
Baptiste Daroussin
2 years ago a7b542e
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
B
curl: add HTTP_AUTH compatiblility with libfetch
Baptiste Daroussin
2 years ago 6e6c9ad
G
Improve libpkg interface for plugins use.
Gleb Popov
2 years ago a2d1b9d
G
Switch MAXPATHLEN to PATH_MAX in temp dir path
Gabe Schrecker
3 years ago 1f83de3
G
Fix max temp dir path length
Gabe Schrecker
3 years ago 42b265d
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
B
hardlinks: deduplicate code
Baptiste Daroussin
3 years ago 4eb062b
B
open_tempdir: add a new function
Baptiste Daroussin
3 years ago 3fbc61c
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
utils: add a test suite for json_escape
Baptiste Daroussin
4 years ago 2d23159
B
tempfile: improve the filename creation to reduce ENAMETOOLONG risks
Baptiste Daroussin
4 years ago ce75303
B
lua.pkg_copy: use copy_file_range(2) if it exists
Baptiste Daroussin
4 years ago dce033e
B
hardlinks: rework handling of hardlinks
Baptiste Daroussin
4 years ago 70b98f1
B
libpkg: kill dead code
Baptiste Daroussin
4 years ago f6f1120
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
plist: remove @*exec
Baptiste Daroussin
5 years ago a0bb0f8
B
pkgdb: Better sql error message
Baptiste Daroussin
5 years ago b06dadd
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
K
libpkg: rsa: start abstracting away rsa bits
Kyle Evans
5 years ago 3e31cb4
B
utils: add a function to right trim spaces
Baptiste Daroussin
5 years ago a639ddc
B
Get rid of the dirname and basename which implement differs depending on OSes
Baptiste Daroussin
5 years ago 3c5dde3
B
Factorize the matching of globs and regexp
Baptiste Daroussin
5 years ago 9ba7144
B
scripts: prepend the lines that serves as arguments when formating the scripts from plist
Baptiste Daroussin
5 years ago 7193046
B
merge3: get rid of utstring
Baptiste Daroussin
5 years ago d88f0c4
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
A
Add a 'hash' mode to pkg repo
Allan Jude
5 years ago 36dfb48
B
Override io.open for lua scripts and capsicumize
Baptiste Daroussin
6 years ago 5873340
B
Add a helper to avoid duplicating code for socketpairs creation
Baptiste Daroussin
6 years ago 260820b
B
Parse FreeBSD OS version and forbid to install too new packages
Baptiste Daroussin
8 years ago 6f7e273
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
More functions to only use fd
Baptiste Daroussin
9 years ago cd74830
B
Simplify a bit the internal API by always trying to use fd
Baptiste Daroussin
9 years ago 8efc943
B
Remove some useless uthash.h includes
Baptiste Daroussin
9 years ago 5226ccf
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Isolate more openssl headers
Baptiste Daroussin
9 years ago f6294c4
B
Fix openssl API that accidently crept in the public API
Baptiste Daroussin
9 years ago c05dc99
B
Refactor the pkg extraction
Baptiste Daroussin
10 years ago a35bf46
B
Add a recursive mkdirat function
Baptiste Daroussin
10 years ago 20d8100
B
Convert to use XXHASH
Baptiste Daroussin
10 years ago 35267fc
B
Remove useless sbuf_get()
Baptiste Daroussin
10 years ago 5734f64
B
Remove useless sbuf_size()
Baptiste Daroussin
10 years ago b12fe07
B
Complete pkg_checksum API and reduce duplicated code
Baptiste Daroussin
10 years ago 8f01347
B
Yet more
Baptiste Daroussin
11 years ago 4830966
B
Remove 2 leftovers from UTHASH to khash conversion
Baptiste Daroussin
11 years ago 2b2b47a
B
Convert UTHASH to khash for hardlinks checking
Baptiste Daroussin
11 years ago c68e105
B
Remove usage of backtraces it was anyway disabled for a while
Baptiste Daroussin
11 years ago 29df844
B
Remove md5
Baptiste Daroussin
11 years ago dd13c34
A
Cosmetic changes
Alexandre Perrin
11 years ago 7349434
B
Remove the ability to generate MD5 sums it is not needed anymore
Baptiste Daroussin
11 years ago fd3b7a1
B
Drop incremental support for pkg update
Baptiste Daroussin
11 years ago dabdd2c
B
Remove dead code
Baptiste Daroussin
11 years ago 5045c55
B
Fix warning
Baptiste Daroussin
11 years ago 8ae3783
B
Allow to 3way merge configuration files
Baptiste Daroussin
11 years ago 77f8504
B
Import from fossil 3 way merge code
Baptiste Daroussin
11 years ago dda97b3
B
Actually align everything on off_t is a better idea
Baptiste Daroussin
11 years ago 2ec9b6c
B
More s/off_t/size_t/g
Baptiste Daroussin
11 years ago 52155b6
B
s/off_t/size_t
Baptiste Daroussin
11 years ago 98296f6
B
Remove yaml related code which is not used anywhere
Baptiste Daroussin
11 years ago 92e745d
B
Allow arguments in ucl keywords
Baptiste Daroussin
11 years ago 20a3a82
B
Declare parse_mode in utils.h to allow testing it
Baptiste Daroussin
11 years ago 64d0416
M
Fix check_for_hardlink.
Maxim Ignatenko
11 years ago 58bcb25
V
Merge branch 'master' into imax-rework
Vsevolod Stakhov
11 years ago 810a097
B
Add a pkg_symlink_cksumat to fix pkg-delete
Bryan Drewery
11 years ago 86552e2
B
Move pkg_symlink_cksum prototype to more proper header
Bryan Drewery
11 years ago c780eb5
B
Implement file_to_buffer_at
Baptiste Daroussin
11 years ago 9632709
B
Add sha256_fileat function
Baptiste Daroussin
11 years ago 3d8bb23
B
Implement file_to_buffer_at
Baptiste Daroussin
11 years ago 47f0d8e
B
Add sha256_fileat function
Baptiste Daroussin
11 years ago 2a32806
B
Constify first argument of sha256_buf
Baptiste Daroussin
11 years ago 21271ac
V
Rename `is_hardlink` to `check_for_hardlink`.
Vsevolod Stakhov
11 years ago 04ab399
V
Print trace on sqlite3 errors.
Vsevolod Stakhov
11 years ago b17ace4
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago 9852eca
B
Add backtraces on supported platforms
Baptiste Daroussin
11 years ago 72ead28
V
Fix ERROR_SQLITE macro.
Vsevolod Stakhov
11 years ago 6078fa4
V
Fix sqlite error output.
Vsevolod Stakhov
12 years ago 6739ef7
B
Merge branch 'master' into fix-autoremove-completion
Brad Davis
12 years ago 5b00ee1
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
B
Only define NELEM if not already defined
Baptiste Daroussin
12 years ago 742fac4
A
use a new macro NELEM() to count the number of element in a static sized array.
Alexandre Perrin
12 years ago c03111f
B
Fix pkg ssh by creating a fetch(3) like api
Baptiste Daroussin
12 years ago 6b71cee
B
RSA_verify() expects a binary digest of the data, not hex
Bryan Drewery
12 years ago fd8e096
B
Support srv weight properly
Baptiste Daroussin
12 years ago 7319cf6
B
Sort srv by priority and prepare for weight support
Baptiste Daroussin
12 years ago a511f7f
B
sha256_buf() has nothing relevant to return, make it void
Bryan Drewery
12 years ago 6ede695
B
Add a single function to validate ABIs
Baptiste Daroussin
12 years ago 2236f4c
B
Switch manifest from yaml to ucl when parsing and emitting
Baptiste Daroussin
12 years ago 0f4041b
B
Add a function to convert yaml to inlined yaml then parse it via ucl.
Baptiste Daroussin
12 years ago 2864355
V
Avoid using of popen for bi-directional pipes.
Vsevolod Stakhov
12 years ago c1be57a
B
Allow to check rsa from buffer
Baptiste Daroussin
12 years ago 55a7efb
B
Add a function to compute a sha256 hash out of a buffer
Baptiste Daroussin
12 years ago 9968ceb
B
Fix malformed database in case pkg update is interrupted
Baptiste Daroussin
12 years ago d36fbe6
V
Rework conflicts system.
Vsevolod Stakhov
12 years ago 7915464
B
Fix digest handling after 5ae680e49
Bryan Drewery
12 years ago 7879c71
B
Refactor the signing repository code so that the key is being asked only once
Baptiste Daroussin
12 years ago 95de717
B
Remove dead code
Baptiste Daroussin
13 years ago 145f74a
B
Preliminaty support for ssh:// packagesite
Baptiste Daroussin
13 years ago aee69d1
A
Merge remote-tracking branch 'origin/master' into periodic
Alex Kozlov
13 years ago 677d1b3
B
Convert hardlinks handling to use uthash
Baptiste Daroussin
13 years ago 8d66be8
B
Add the ability to setup the nameserver via pkg.conf or env
Baptiste Daroussin
13 years ago 28ee589
B
Add support for md5 checksums (needed for old format)
Baptiste Daroussin
13 years ago 193ccd4
M
Style: Add dash to first line of copyright header.
Matthew Seaman
13 years ago bfe0183
B
Remove some more dead code
Baptiste Daroussin
13 years ago df57985
B
Removed unused sha256_str function
Baptiste Daroussin
13 years ago c7a2dc2
B
split_chr is not used anymore, remove it
Baptiste Daroussin
13 years ago a911fd8
R
Merge branch 'master' of git://github.com/pkgng/pkgng
Roman Naumann
13 years ago 838dd4c
B
Make srv mirroring support working, default off
Baptiste Daroussin
13 years ago 2812a0e
B
Add code to be able to query SRV records from dns. Will be used to automatic mirror determination like (portsnap/freebsd-update)
Baptiste Daroussin
13 years ago 1ae424d
J
Refactored update code.
Julien Laffaye
13 years ago 05e2e36
J
Line number is useless without file name!
Julien Laffaye
14 years ago 32a1305
B
Remove osversion from manifest and database, uses abi for arch instead
Baptiste Daroussin
14 years ago ffd74b2
B
Move hardlinks detection to utils.c to avoid code duplication
Baptiste Daroussin
14 years ago 8643a07
B
add sbuf_init
Baptiste Daroussin
14 years ago 676c016
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