manager: if called with compat telinit interface, tell users to update
In https://bugzilla.redhat.com/show_bug.cgi?id=2479961 a user reported that they are confused that 'init 6' and such commands do not work anymore. We removed support for the whole interface, but it's likely that such commands persist in various scripts and finger memories. Let's give a helpful hint that this inteface is gone and what to use instead.
This commit is contained in:
@@ -177,11 +177,11 @@ int terminal_urlify_path(const char *path, const char *text, char **ret) {
|
||||
return terminal_urlify(url, text, ret);
|
||||
}
|
||||
|
||||
int terminal_urlify_man(const char *page, const char *section, char **ret) {
|
||||
int terminal_urlify_man_full(const char *page, const char *section, const char *suffix, char **ret) {
|
||||
const char *url, *text;
|
||||
|
||||
url = strjoina("man:", page, "(", section, ")");
|
||||
text = strjoina(page, "(", section, ") man page");
|
||||
text = strjoina(page, "(", section, ")", suffix);
|
||||
|
||||
return terminal_urlify(url, text, ret);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,10 @@ bool urlify_enabled(void);
|
||||
|
||||
int terminal_urlify(const char *url, const char *text, char **ret);
|
||||
int terminal_urlify_path(const char *path, const char *text, char **ret);
|
||||
int terminal_urlify_man(const char *page, const char *section, char **ret);
|
||||
int terminal_urlify_man_full(const char *page, const char *section, const char *suffix, char **ret);
|
||||
static inline int terminal_urlify_man(const char *page, const char *section, char **ret) {
|
||||
return terminal_urlify_man_full(page, section, " man page", ret);
|
||||
}
|
||||
|
||||
typedef enum CatFlags {
|
||||
CAT_CONFIG_OFF = 0,
|
||||
|
||||
Reference in New Issue
Block a user