mount{,_ufs}: Fix wrong mountctl(2) error check.
authorSascha Wildner <saw@online.de>
Wed, 14 Nov 2012 10:06:26 +0000 (11:06 +0100)
committerSascha Wildner <saw@online.de>
Wed, 14 Nov 2012 10:07:37 +0000 (11:07 +0100)
commit105081242ad6f5eee13a8048c3904ecdb5fcb1cb
tree738070fd10498dca397d72ac6dfa887b1fbf11c7
parent75f59366fab72322f3f3ded7fe5037f40674b081
mount{,_ufs}: Fix wrong mountctl(2) error check.

mountctl(2) returns the number of copied bytes when successful, and -1
if there was an error. This prevented ", local" from being printed in
mount output.

Reported-by: YONETANI Tomokazu
sbin/mount/mount.c
sbin/mount_ufs/mount.c