sh: Show hashtag on root's prompt
This commit is contained in:
parent
059c2bfa3f
commit
46ee0eb937
@ -74,7 +74,7 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
if (file == "-") fputs("sh$ ", stdout);
|
if (file == "-") fputs(getuid() == 0 ? "sh# " : "sh$ ", stdout);
|
||||||
|
|
||||||
char cmd[4096];
|
char cmd[4096];
|
||||||
char* rc = fgets(cmd, sizeof(cmd), f);
|
char* rc = fgets(cmd, sizeof(cmd), f);
|
||||||
|
Loading…
Reference in New Issue
Block a user