Skip to content

Commit

Permalink
Deprecate rpmCleanPath() in the public API
Browse files Browse the repository at this point in the history
Nobody should use this, least of which external users.
Drop the last remaining comment referring to it too.
  • Loading branch information
pmatilai committed Nov 12, 2024
1 parent 8b831e4 commit 36903e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/rpm/rpmfileutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@ int rpmMkdirs(const char *root, const char *pathstr);

/** \ingroup rpmfileutil
* Canonicalize file path.
* @deprecated Unsafe, do not use.
*
* @param path path to canonicalize (in-place)
* @return pointer to path
*/
RPM_GNUC_DEPRECATED
char * rpmCleanPath (char * path);

/** \ingroup rpmfileutil
Expand Down
2 changes: 1 addition & 1 deletion lib/rpmfi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <rpm/rpmts.h>
#include <rpm/rpmfileutil.h> /* XXX rpmDoDigest */
#include <rpm/rpmstring.h>
#include <rpm/rpmmacro.h> /* XXX rpmCleanPath */
#include <rpm/rpmmacro.h>
#include <rpm/rpmds.h>
#include <rpm/rpmbase64.h>
#include <errno.h>
Expand Down

0 comments on commit 36903e9

Please sign in to comment.