diff options
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index c09ecd85..18edf40c 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -2052,10 +2052,10 @@ err_prw: static int check_file(int fd, struct stat *st) { - if (fstat(fd, st) == -1) + if (fstat(fd, st) == -1) goto err_is_file; - if (S_ISREG(st->st_mode)) + if (!S_ISREG(st->st_mode)) goto err_is_file; return 0; |
