summaryrefslogtreecommitdiff
path: root/source3/lib/util_path.h
AgeCommit message (Collapse)AuthorFilesLines
2024-07-26s3/lib: move path_to_strv() to util_path.cRalph Boehme1-0/+1
More callers are coming. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2022-12-16libsmb: Simplify clistr_is_previous_version_path()Volker Lendecke1-4/+1
Nobody looks at the out params anymore Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Dec 16 08:42:18 UTC 2022 on sn-devel-184
2022-12-16s3: lib: Add new clistr_smb2_extract_snapshot_token() function.Jeremy Allison1-0/+1
Strips @GMT from client pathnames for SMB2 (uses '\\' separator). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2022-10-25CVE-2022-3592 lib: Move subdir_of() to source3/lib/util_path.cVolker Lendecke1-0/+4
Make it available for other components Bug: https://bugzilla.samba.org/show_bug.cgi?id=15207 Signed-off-by: Volker Lendecke <vl@samba.org>
2022-09-19libsmb: Use find_snapshot_token() for clistr_is_previous_version_path()Volker Lendecke1-0/+4
Dedup that string parsing logic Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Sep 19 18:21:56 UTC 2022 on sn-devel-184
2022-09-19lib: Move extract_snapshot_token() to util_path.cVolker Lendecke1-0/+14
Make it available to replace clistr_is_previous_version_path() in libsmb/ Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-08-17lib: Pass mem_ctx to cache_path()Volker Lendecke1-1/+1
Fix a confusing API: Many places TALLOC_FREE the path where it's not clear you have to do it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Aug 17 14:28:51 CEST 2018 on sn-devel-144
2018-08-17lib: Pass mem_ctx to state_path()Volker Lendecke1-1/+1
Fix a confusing API: Many places TALLOC_FREE the path where it's not clear you have to do it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2018-08-17lib: Pass mem_ctx to lock_path()Volker Lendecke1-1/+4
Fix a confusing API: Many places TALLOC_FREE the path where it's not clear you have to do it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-01-30s3: lib: Add canonicalize_absolute_path().Jeremy Allison1-0/+1
Resolves any invalid path components (.) (..) in an absolute POSIX path. We will be re-using this in several places. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12531 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
2015-12-14lib: Separate out xx_path() & callersVolker Lendecke1-0/+31
We should not have to #include proto.h just for cache_path() or so Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>