aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 496167fbe..789a81cc3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13004,10 +13004,10 @@ init(void)
13004#endif 13004#endif
13005 p = lookupvar("PWD"); 13005 p = lookupvar("PWD");
13006 if (p) { 13006 if (p) {
13007 if (*p != '/' || stat(p, &st1) || stat(".", &st2) 13007 if (p[0] != '/' || stat(p, &st1) || stat(".", &st2)
13008 || st1.st_dev != st2.st_dev || st1.st_ino != st2.st_ino 13008 || st1.st_dev != st2.st_dev || st1.st_ino != st2.st_ino
13009 ) { 13009 ) {
13010 p = '\0'; 13010 p = NULL;
13011 } 13011 }
13012 } 13012 }
13013 setpwd(p, 0); 13013 setpwd(p, 0);