Ticket #7433: add_check.patch

File add_check.patch, 468 bytes (added by idefix, 14 years ago)

Check if the mount point is set (implies that device is also set), before trying to mount the volume.

  • src/tools/fs_shell/fuse.cpp

     
    602614    if (fuse_opt_parse(&fuseArgs, &config, fsOptions, process_options) < 0)
    603615        return 1;
    604616
     617    if (!config.mntPoint)
     618        print_usage_and_exit(fuseArgs.argv[0]);
     619
    605620    if (!modules[0]) {
    606621        fprintf(stderr, "Error: Couldn't find FS module!\n");
    607622        return 1;