diff options
Diffstat (limited to 'misc/e4crypt.c')
-rw-r--r-- | misc/e4crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/e4crypt.c b/misc/e4crypt.c index 67d25d8..af90704 100644 --- a/misc/e4crypt.c +++ b/misc/e4crypt.c @@ -144,7 +144,7 @@ static void validate_paths(int argc, char *argv[], int path_start_index) if (ret < 0) goto invalid; if (!S_ISDIR(st.st_mode)) { - fprintf(stderr, "%s is not a directory\n", argv[x]); + errno = ENOTDIR; goto invalid; } } |