mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-02 13:47:42 +03:00
remove now-redundant slash-stripping
This commit is contained in:
parent
3086822cd2
commit
d30a2653b5
@ -21,7 +21,8 @@
|
||||
|
||||
static inline char *last_path_component(char const *name)
|
||||
{
|
||||
char const *slash = strrchr (name, '/');
|
||||
char const *slash = strrchr(name, '/');
|
||||
char const *res = slash ? slash + 1 : name;
|
||||
return (char *) res;
|
||||
|
||||
return (char *)res;
|
||||
}
|
||||
|
@ -1165,8 +1165,6 @@ int lvm2_main(int argc, char **argv, unsigned is_static)
|
||||
_close_stray_fds();
|
||||
|
||||
base = last_path_component(argv[0]);
|
||||
while (*base == '/')
|
||||
base++;
|
||||
if (strcmp(base, "lvm") && strcmp(base, "lvm.static") &&
|
||||
strcmp(base, "initrd-lvm"))
|
||||
alias = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user