Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/utils.c  ·  View all commits
200 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
B
ucl_parse: add 2 helpers on top of ucl to deduplicate code
Baptiste Daroussin
9 days ago b68de0a
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
libpkg: fix getgrnam_r related errors
Baptiste Daroussin
1 month ago a159fe4
B
pkg: messages improvements
Baptiste Daroussin
2 months ago b21ebf9
B
utils: prevent potential buffer overflow
Baptiste Daroussin
2 months ago 48f73f1
B
file_to_bufferat: fix potential memory leak
Baptiste Daroussin
2 months ago 2a6170e
B
memory: drastically reduce memory usage
Baptiste Daroussin
3 months ago 83243c7
B
configure: stop testing for MACROS in configure scripts
Baptiste Daroussin
3 months ago 7cb692c
B
Revert "compat: use close_range() on linux for closefrom()"
Baptiste Daroussin
3 months ago 4abb01c
B
compat: use close_range() on linux for closefrom()
Baptiste Daroussin
3 months ago 58719c9
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
s
check: implement verification of file and dir metadata
strssndktn
6 months ago 48e6c12
s
utils: generalize user/group name to uid/gid functions
strssndktn
6 months ago 087ece7
M
libpkg: Avoid an unnecessary memory allocation in mkdirat_p()
Mark Johnston
7 months ago 236719c
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 months ago 7dccd36
M
libpkg: Clean up pkg_copy_file() a bit
Mark Johnston
8 months ago 27e7dfb
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
pkg: for all lists insert elements sorted
Baptiste Daroussin
11 months ago abac190
B
utils: add charv_search
Baptiste Daroussin
1 year ago b4c8d82
B
refacto: convert actions_t to vector
Baptiste Daroussin
1 year ago 9c84584
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
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
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
I
libpkg: rework internal ABI handling, fix bugs
Isaac Freund
1 year ago 6c740ac
S
Merge remote-tracking branch 'freebsd/main'
Shawn Webb
1 year ago 84c2214
B
abi: change abi validation
Baptiste Daroussin
1 year ago 1e0dc31
B
osversion: fix comparison
Baptiste Daroussin
1 year ago 9675169
B
OS: make more os specific behaviour dynamic
Baptiste Daroussin
1 year ago 74f7b91
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c62eec6
B
c_charv_contains
Baptiste Daroussin
1 year ago ec12d11
K
Add comment and observation on memory corruption.
Keve
1 year ago 866ffc6
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 851a6a4
B
osversion: fix message
Baptiste Daroussin
1 year ago e9dc76a
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
r
libpkg/utils.c: use memset instead of bzero
rilysh
2 years ago eb15d28
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago f0dee69
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago ba94185
B
format_exec_cmd: fix a regression introduced 4 years ago
Baptiste Daroussin
2 years ago 7594291
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 825ab9d
B
plist: grow the notion of variable
Baptiste Daroussin
2 years ago a340f78
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago adf6f88
r
libpkg/utils.c: keep the length in a variable to avoid another call
rilysh
2 years ago 0f444c3
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 76bfe81
r
libpkg/utils.c: indent the cleanup label
rilysh
2 years ago b8f856b
r
libpkg/utils.c: initialize pointer with NULL
rilysh
2 years ago bd41a85
r
libpkg/utils.c: use _exit() instead of exit()
rilysh
2 years ago ac6fa03
r
utils.c: return NULL when getenv(...) fails in get_http_auth() function
rilysh
2 years ago 482b299
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9856def
B
format_exec_cmd: simplify (no functional change intended)
Baptiste Daroussin
2 years ago c76ba70
B
manifest: add a function to emit directly to a file descriptor
Baptiste Daroussin
2 years ago 79716e0
B
ucl: remove duplicated functions
Baptiste Daroussin
2 years ago 1196c78
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
B
copy_file_range: fallback in case of EXDEV
Baptiste Daroussin
3 years ago 5513240
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
B
open_tempdir: add a new function
Baptiste Daroussin
3 years ago 3fbc61c
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago e294fea
B
hidden_tempfile, handle file that are 240 character long
Baptiste Daroussin
3 years ago 0c01014
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
memory: fix the potential overflow in a generic manner
Baptiste Daroussin
4 years ago 89b90c3
B
memory: fix potential buffer overflow
Baptiste Daroussin
4 years ago 8dd9e28
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
J
Optimize mkdirs() a bit.
John Hood
4 years ago 5d825ad
J
Remove copypasta on various ...fileat() functions
John Hood
4 years ago 88f45cb
B
hardlinks: rework handling of hardlinks
Baptiste Daroussin
4 years ago 70b98f1
B
libpkg: kill dead code
Baptiste Daroussin
4 years ago f6f1120
B
ubsan: fix undefined behaviour
Baptiste Daroussin
4 years ago 48f3272
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
plist: remove @*exec
Baptiste Daroussin
5 years ago a0bb0f8
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
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
Implement real arguments for lua script from keywords
Baptiste Daroussin
5 years ago 6d75f8c
B
scripts: prepend the lines that serves as arguments when formating the scripts from plist
Baptiste Daroussin
5 years ago 7193046
B
small cleanup using xstring_get
Baptiste Daroussin
5 years ago b8d1835
B
plist parsing: get rid of utstring
Baptiste Daroussin
5 years ago e47bd98
B
Use open_memstream p1
Baptiste Daroussin
5 years ago 383d27c
S
Merge remote-tracking branch 'upstream/master' into master
Shawn Webb
5 years ago 7e2225c
E
Fix %# in scripts
Emmanuel Vadot
5 years ago 37ee400
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
V
Merge pull request #1870 from Absolight/fix-osversion
Vsevolod Stakhov
5 years ago 844bf37
M
When the OSVERSION of the new packages is greater, do not default to breaking the user's system.
Mathieu Arnold
5 years ago 13000a1
A
Add a 'hash' mode to pkg repo
Allan Jude
5 years ago 36dfb48
B
OSX has a broken implementation of SOCK_SEQPACKET
Baptiste Daroussin
6 years ago a7e9b05
B
On system without SOCK_SEQPACKET SOCK_STREAM should be used not SOCK_DGRAM
Baptiste Daroussin
6 years ago a701d9d
B
Add a helper to avoid duplicating code for socketpairs creation
Baptiste Daroussin
6 years ago 260820b
B
sort in alphabetical order the section for upgrades
Baptiste Daroussin
6 years ago 64ecf00
E
Improve the message.
Edward Tomasz Napierala
7 years ago 676bb8c
B
"Fix" -Wimplicit-fallthrough warnings
Baptiste Daroussin
7 years ago 330e309
B
s/missmatch/mismatch/
Brad Davis
8 years ago 31f1527
V
Merge pull request #1666 from vstakhov/osversion-fix
Vsevolod Stakhov
8 years ago 6f17a9c
V
Improve error message
Vsevolod Stakhov
8 years ago 5030530
V
Allow minor OSVERSION missmatch in a more user-friendly matter
Vsevolod Stakhov
8 years ago 04feb58
B
Add an option to ignore the osversion check on FreeBSD
Baptiste Daroussin
8 years ago 4d9a295
R
mkdirat_p: fix invalid free
Ralf Hubert
8 years ago 0be3f5e
B
Register the FreeBSD version and use it
Baptiste Daroussin
8 years ago f48e4f2
B
Add a integer to store osversion
Baptiste Daroussin
8 years ago 1bbe636
B
Parse FreeBSD OS version and forbid to install too new packages
Baptiste Daroussin
8 years ago 6f7e273
D
Allow using pattern as package arch
Dmitry Mikhirev
8 years ago 4ce15a3
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
Move xmalloc.h out of private
Baptiste Daroussin
9 years ago 841617e
B
abort() in case of memory failure
Baptiste Daroussin
9 years ago 2a1ca66
B
Add 2 new macros: pkg_errno and pkg_fatal_errno
Baptiste Daroussin
9 years ago 305ccf2
B
Remove some useless uthash.h includes
Baptiste Daroussin
9 years ago 5226ccf
B
Fix warnings reported by clang
Baptiste Daroussin
9 years ago 1d317c3
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Remove leftovers from another time
Baptiste Daroussin
9 years ago 8744b83
B
Add a recursive mkdirat function
Baptiste Daroussin
10 years ago 20d8100
B
When extracting packages if they were packed with relative path name, then prepend a '/' to the path
Baptiste Daroussin
10 years ago 01e323a
B
Update libucl to latest version
Baptiste Daroussin
10 years ago 3433197
B
Remove EOL white spaces
Baptiste Daroussin
10 years ago 2782ce1
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
Remove useless code
Baptiste Daroussin
11 years ago 16e6c5a
B
Convert UTHASH to khash for hardlinks checking
Baptiste Daroussin
11 years ago c68e105
B
Properly test the return for format_exec_cmd
Baptiste Daroussin
11 years ago 21e85f0
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
B
Merge pull request #1113 from landonf/osx/release/0.1
Baptiste Daroussin
11 years ago 3eafef1
L
Enable use of closefrom() and eaccess() shims.
Landon Fuller
11 years ago 6c8f7a2
B
Remove the ability to generate MD5 sums it is not needed anymore
Baptiste Daroussin
11 years ago fd3b7a1
B
Simplify sha256_fd
Baptiste Daroussin
11 years ago f3d4b7c
B
Drop incremental support for pkg update
Baptiste Daroussin
11 years ago dabdd2c
B
Remove dead code
Baptiste Daroussin
11 years ago 5045c55
B
Allow to 3way merge configuration files
Baptiste Daroussin
11 years ago 77f8504
B
Migrate absolutepath into the library renamed pkg_absolutepath
Baptiste Daroussin
11 years ago d38903c
B
Use MACHINE_ARCH to define abi
Baptiste Daroussin
11 years ago 9946e92
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 libyaml not used anymore
Baptiste Daroussin
11 years ago 4a00a16
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
Move the tokenizer code into libpkg
Baptiste Daroussin
11 years ago 437faef
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
Simplify a bit package creation using *at function
Baptiste Daroussin
11 years ago b2b5c50
B
Implement file_to_buffer_at
Baptiste Daroussin
11 years ago 9632709
B
Add sha256_fileat function
Baptiste Daroussin
11 years ago 3d8bb23
B
Simplify a bit package creation using *at function
Baptiste Daroussin
11 years ago b6f7a42
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
Fix symlinks checksums.
Vsevolod Stakhov
11 years ago 4f56f4b
V
Rename `is_hardlink` to `check_for_hardlink`.
Vsevolod Stakhov
11 years ago 04ab399
V
Fix is_hardlink definition.
Vsevolod Stakhov
11 years ago f27bcfa
B
Temporary disable backtraces they are not ready yet for prime
Baptiste Daroussin
11 years ago 0a222f5
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago 9852eca
B
Fix build on 8 and 9
Baptiste Daroussin
11 years ago b9babe6
B
Add backtraces on supported platforms
Baptiste Daroussin
11 years ago 72ead28
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago 9eecfc4
B
Fix ucl_object_emit_file() so it actually works, pass the FILE pointer in not NULL
Bryan Drewery
11 years ago 5c7862e
B
The emitters don't modify the ucl_object
Bryan Drewery
11 years ago abdfc81
B
Convert struct pkg to mostly be a ucl_object_t and chase libucl changes
Baptiste Daroussin
12 years ago 3a72e6b
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
B
Fix typo
Baptiste Daroussin
12 years ago b90857a
B
Fix misusage of sbuf
Baptiste Daroussin
12 years ago a4fe396
B
Merge branch 'master' into fix-autoremove-completion
Brad Davis
12 years ago 5b00ee1
B
Custom ucl emitters
Baptiste Daroussin
12 years ago 364ec45
V
Restore process_spawn_pipe utility function.
Vsevolod Stakhov
12 years ago 00fc8e3
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
M
Merge branch 'master' of git://github.com/grembo/pkg into grembo-master
Matthew Seaman
12 years ago 651b2fb
M
Use MAX* cosistently
Michael Gmelin
12 years ago 91c1dcd
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
Do no try to add empty objects when falling back from yaml
Baptiste Daroussin
12 years ago 3465a6d
B
Merge pull request #629 from so14k/gcc-build-fix
Bryan Drewery
12 years ago 542f122
B
- Fix build on gcc
Brad Davis
12 years ago 6a40be7
B
sha256_buf() has nothing relevant to return, make it void
Bryan Drewery
12 years ago 6ede695
B
Sync libucl, and allow PKG_NAME to be an integer that fixes: (games/54321)
Baptiste Daroussin
12 years ago 89bd3f3
B
Only parse boolean for now, as parsing int causes expected behaviour
Baptiste Daroussin
12 years ago 852a548
B
Sync from libucl, and only convert string to boolean and/or integers
Baptiste Daroussin
12 years ago 30a0f92
B
Black list version from auto discovering of intergers/double
Baptiste Daroussin
12 years ago 332d913
B
Sync with libucl, while here make fallback gather intergers and booleans
Baptiste Daroussin
12 years ago 84fedd1
B
Use an API more ucl friendly
Baptiste Daroussin
12 years ago 7fa6521
B
Sync with ucl, use new api to duplicate key and avoid memory leaks
Baptiste Daroussin
12 years ago 6b8644c
B
Duplicate key to avoid reusing the same data
Baptiste Daroussin
12 years ago effe232
B
Update to latest ucl
Baptiste Daroussin
12 years ago f4e2981