mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
Actually we dont need to check if the device is nfs as it wont be stat'ed
This commit is contained in:
parent
1b62619446
commit
cc0aa0f2d7
3
mount.c
3
mount.c
@ -385,8 +385,7 @@ extern int mount_main(int argc, char **argv)
|
||||
|
||||
if (optind < argc) {
|
||||
/* if device is a filename get its real path */
|
||||
if ((strchr(argv[optind], ':') == NULL) &&
|
||||
(stat(argv[optind], &statbuf) == 0)) {
|
||||
if (stat(argv[optind], &statbuf) == 0) {
|
||||
realpath(argv[optind], device);
|
||||
} else {
|
||||
safe_strncpy(device, argv[optind], PATH_MAX);
|
||||
|
@ -385,8 +385,7 @@ extern int mount_main(int argc, char **argv)
|
||||
|
||||
if (optind < argc) {
|
||||
/* if device is a filename get its real path */
|
||||
if ((strchr(argv[optind], ':') == NULL) &&
|
||||
(stat(argv[optind], &statbuf) == 0)) {
|
||||
if (stat(argv[optind], &statbuf) == 0) {
|
||||
realpath(argv[optind], device);
|
||||
} else {
|
||||
safe_strncpy(device, argv[optind], PATH_MAX);
|
||||
|
Loading…
Reference in New Issue
Block a user