Re: fsck files w/relative paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 20, 2013 at 06:27:22PM -0500, Mike Frysinger wrote:
> we could tweak parse_argv() so that it checks for argv[0] == '.' in addition 
> to argv[0] == '/'.  but that wouldn't fix other relative paths like:
> $ fsck images/foo
> $ fsck foo

Hmm... maybe add a hint to the fsck man page is the best solution :-)

> should we treat all non-options as devices ?  would that break anything ?

I don't think it's a good idea.

All unknown stuff is by default interpreted as filesystem specific options
(options for fsck.<type>) and it's pretty common that people don't use
"--" separator between fsck and fsck.<type> options.

 Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux