aboutsummaryrefslogtreecommitdiff
path: root/toys/df.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-11-19 20:35:05 -0500
committerRob Landley <rob@landley.net>2006-11-19 20:35:05 -0500
commit4541e881568708cc9462f67abecf01ee55e6e611 (patch)
tree5cacf14713c483745c41e735fb2bfe695e749594 /toys/df.c
parent2a813ffadf19957f1798cfc68a3ea78199ce1f49 (diff)
downloadtoybox-4541e881568708cc9462f67abecf01ee55e6e611.tar.gz
Fix thinko (inverted test).
Diffstat (limited to 'toys/df.c')
-rw-r--r--toys/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/df.c b/toys/df.c
index d4528f96..375aa0ab 100644
--- a/toys/df.c
+++ b/toys/df.c
@@ -77,7 +77,7 @@ int df_main(void)
struct stat st;
// Stat it (complain if we can't).
- if(!stat(*next, &st)) {
+ if(stat(*next, &st)) {
perror_msg("`%s'", next);
toys.exitval = 1;
continue;