text-based mount command: Fixed typo in po_rightmost
Subsystems (2)
PATCH 1/1 text-based mount command: Fixed typo in po_rightmost
Fixed typo in po_rightmost() that was cause options like nolock, bg, udp, tcp, proto, v2, v3, vers, nfsvers to either be ignored or interrupted
Signed-off-by Steve Dickson <[email protected]>
utils/mount/parse_opt.c +1 -1
@@ -448,7 +448,7 @@ unsigned int po_rightmost(struct mount_options *options, const char *keys[])for (option = options->tail; option; option = option->prev) {for (i =0 ; keys[i] !=NULL ; i++)if (strcmp (option->keyword, keys[i]) ==0 ) -return i; +return i+1 ; } }