mount: allow relative path
cmd - userland programs
/sbin/mount utility doesn't apply relative path as a mount point. That's very annoying.
% pwd /rpool/ws/illumos-gate % mkdir mnt % sudo mount -F nfs -o rw loki.local:/tank/work mnt mount: Mount point mnt is not an absolute pathname.
The attached patch fixes the problem:
% sudo ./proto/root_i386/sbin/mount -F nfs -o rw loki.local:/tank/work mnt % echo $? 0
Updated by Gordon Ross about 10 years ago
- Status changed from New to Resolved
changeset: 13644:e48bbfe444bf tag: tip user: Dan Kruchinin <firstname.lastname@example.org> date: Wed Mar 21 19:44:57 2012 +0200 description: 2433 mount: allow relative path Reviewed by: Garrett D'Amore <email@example.com> Reviewed by: Gary Mills <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>