← Commit list

e880b1fea

Denys Vlasenko
Denys Vlasenko
2020-02-16
SUCCESS Duration: 151s

Subject

ash: expand: Use HOME in tilde expansion when it is empty

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+1 -1
@@ -6440,7 +6440,7 @@ exptilde(char *startp, char *p, int flags)
goto lose;
home = pw->pw_dir;
}
- if (!home || !*home)
+ if (!home)
goto lose;
*p = c;
strtodest(home, SQSYNTAX, quotes);