You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ntfs-3g/ntfs-3g-1.2216-nomtab.patch

29 lines
924 B

diff -up ntfs-3g-1.2216/src/ntfs-3g.c.BAD ntfs-3g-1.2216/src/ntfs-3g.c
--- ntfs-3g-1.2216/src/ntfs-3g.c.BAD 2008-02-27 11:40:33.000000000 -0500
+++ ntfs-3g-1.2216/src/ntfs-3g.c 2008-02-27 13:17:57.000000000 -0500
@@ -1947,10 +1947,11 @@ static int parse_options(int argc, char
{
int c;
- static const char *sopt = "-o:hv";
+ static const char *sopt = "-o:hnv";
static const struct option lopt[] = {
{ "options", required_argument, NULL, 'o' },
{ "help", no_argument, NULL, 'h' },
+ { "nomtab", no_argument, NULL, 'n' },
{ "verbose", no_argument, NULL, 'v' },
{ NULL, 0, NULL, 0 }
};
@@ -1989,6 +1990,11 @@ static int parse_options(int argc, char
if (strappend(&opts.options, optarg))
return -1;
break;
+ case 'n':
+ /* We must handle the 'nomtab' option even if
+ * we don't use it because mount(8) passes it.
+ */
+ break;
case 'h':
usage();
exit(9);