aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-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;