aboutsummaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount.c')
-rw-r--r--mount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mount.c b/mount.c
index e511b798b..0295fabc6 100644
--- a/mount.c
+++ b/mount.c
@@ -385,8 +385,7 @@ extern int mount_main(int argc, char **argv)
385 385
386 if (optind < argc) { 386 if (optind < argc) {
387 /* if device is a filename get its real path */ 387 /* if device is a filename get its real path */
388 if ((strchr(argv[optind], ':') == NULL) && 388 if (stat(argv[optind], &statbuf) == 0) {
389 (stat(argv[optind], &statbuf) == 0)) {
390 realpath(argv[optind], device); 389 realpath(argv[optind], device);
391 } else { 390 } else {
392 safe_strncpy(device, argv[optind], PATH_MAX); 391 safe_strncpy(device, argv[optind], PATH_MAX);