mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 13:17:39 +02:00
Trim dev name
This commit is contained in:
@ -205,7 +205,7 @@ static bool read_fstab_dt(const struct cmdline *cmd, const char *mnt_point, char
|
||||
if ((fd = xopen(buf, O_RDONLY | O_CLOEXEC)) >= 0) {
|
||||
read(fd, buf, sizeof(buf));
|
||||
close(fd);
|
||||
char *name = strrchr(buf, '/') + 1;
|
||||
char *name = rtrim(strrchr(buf, '/') + 1);
|
||||
sprintf(partname, "%s%s", name, strend(name, cmd->slot) ? cmd->slot : "");
|
||||
sprintf(buf, "%s/fstab/%s/type", cmd->dt_dir, mnt_point);
|
||||
if ((fd = xopen(buf, O_RDONLY | O_CLOEXEC)) >= 0) {
|
||||
|
Reference in New Issue
Block a user