summaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-04 17:11:25 +0000
committerDenis Vlasenko2007-02-04 17:11:25 +0000
commitcf787cf3a54f21e643d760dc3f893233ecce4ad5 (patch)
tree87a9b5ac42b0f76ede0014bed1940abcfd21bb2a /shell/msh.c
parent10b7996c1bcdeb66675251f5dff3d3ad57ab44f8 (diff)
downloadbusybox-cf787cf3a54f21e643d760dc3f893233ecce4ad5.zip
busybox-cf787cf3a54f21e643d760dc3f893233ecce4ad5.tar.gz
find: support for !
Diffstat (limited to 'shell/msh.c')
-rw-r--r--shell/msh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 817b840..a2da540 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -1278,7 +1278,7 @@ struct op *scantree(struct op *head)
DBGPRINTF5(("SCANTREE: checking node %p\n", head));
- if ((head->type != TDOT) && (strcmp(".", head->words[0]) == 0)) {
+ if ((head->type != TDOT) && LONE_CHAR(head->words[0], '.')) {
DBGPRINTF5(("SCANTREE: dot found in node %p\n", head));
return head;
}