Use the newly defined EX_SUCCESS exit code in all the right places.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
if (flags & MS_REMOUNT) {
update_mtab(ment.mnt_dir, &ment);
if (flags & MS_REMOUNT) {
update_mtab(ment.mnt_dir, &ment);
fail_close:
endmntent(mtab);
fail_close:
endmntent(mtab);
printf("%s ("PACKAGE_STRING")\n", progname);
else
mount_usage();
printf("%s ("PACKAGE_STRING")\n", progname);
else
mount_usage();
break;
case 'V':
printf("%s: ("PACKAGE_STRING")\n", progname);
break;
case 'V':
printf("%s: ("PACKAGE_STRING")\n", progname);
case 'w':
flags &= ~MS_RDONLY;
break;
case 'w':
flags &= ~MS_RDONLY;
break;
}
static struct option umount_longopts[] =
}
static struct option umount_longopts[] =
/* umount might call us twice. The second time there will
* be no entry in mtab and we should just exit quietly
*/
/* umount might call us twice. The second time there will
* be no entry in mtab and we should just exit quietly
*/
only_root:
nfs_error(_("%s: You are not permitted to unmount %s"),
only_root:
nfs_error(_("%s: You are not permitted to unmount %s"),