basic: fix consistency of flags argument for chase and chaseat
Both functions have one flags argument, so we don't need to rename them to `chase_flags`.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ bool unsafe_transition(const struct stat *a, const struct stat *b);
|
||||
/* How many iterations to execute before returning -ELOOP */
|
||||
#define CHASE_MAX 32
|
||||
|
||||
int chase(const char *path_with_prefix, const char *root, ChaseFlags chase_flags, char **ret_path, int *ret_fd);
|
||||
int chase(const char *path_with_prefix, const char *root, ChaseFlags flags, char **ret_path, int *ret_fd);
|
||||
|
||||
int chaseat_prefix_root(const char *path, const char *root, char **ret);
|
||||
int chase_extract_filename(const char *path, const char *root, char **ret);
|
||||
|
||||
@@ -1119,7 +1119,7 @@ int resolve_dev_console(char **ret) {
|
||||
* is a sign for container setups). */
|
||||
|
||||
_cleanup_free_ char *chased = NULL;
|
||||
r = chase("/dev/console", /* root= */ NULL, /* chase_flags= */ 0, &chased, /* ret_fd= */ NULL);
|
||||
r = chase("/dev/console", /* root= */ NULL, /* flags= */ 0, &chased, /* ret_fd= */ NULL);
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (!path_equal(chased, "/dev/console")) {
|
||||
|
||||
Reference in New Issue
Block a user